Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
selfuryon committed Mar 4, 2023
0 parents commit 7cdfb8b
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Nix
.direnv
.envrc

# Go
main

# Test
podman-data
keystores
wallets
210 changes: 210 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
description = "Key Converter";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
ethereum-nix = {
url = "github:nix-community/ethereum.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, ethereum-nix }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };

key-converter = pkgs.buildGoModule {
pname = "key-converter";
version = "0.1.0";
src = ./.;
};
in {
packages."x86_64-linux".key-converter = key-converter;
packages."x86_64-linux".default = self.packages."${system}".key-converter;
apps."x86_64-linux".key-converter = {
type = "app";
program = "${self.packages.x86_64-linux.default}/bin/key-converter";
};
apps."x86_64-linux".default = self.apps."${system}".key-converter;

devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = with pkgs; [
ethereum-nix.packages.x86_64-linux.ethdo
go
go-outline
golangci-lint
gopkgs
gopls
gotools
openssl
];
};
};
}

0 comments on commit 7cdfb8b

Please sign in to comment.