Skip to content

Commit

Permalink
init: geth-hdwallet at 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoborrero committed Apr 18, 2024
1 parent 3a0ed1f commit 0910a32
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
});
geth = callPackage ./geth {};
geth-sealer = callPackage ./geth-sealer {};
geth-hdwallet = callPackage ./geth-hdwallet {};
heimdall = callPackage ./heimdall {};
lighthouse = callPackageUnstable ./lighthouse {inherit foundry;};
mcl = callPackage ./mcl {};
Expand Down Expand Up @@ -105,6 +106,7 @@
geth-rlpdump.bin = "rlpdump";
};
geth-sealer.bin = "geth";
geth-hdwallet.bin = "geth-hdwallet";
lighthouse.bin = "lighthouse";
mev-boost-builder.bin = "geth";
mev-boost-prysm.bin = "beacon-chain";
Expand Down
36 changes: 36 additions & 0 deletions pkgs/geth-hdwallet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "go-ethereum-hdwallet";
version = "0.1.2";

src = fetchFromGitHub {
owner = "miguelmota";
repo = "go-ethereum-hdwallet";
rev = "v${version}";
hash = "sha256-sB2da9jukP6eTOU2w8e/J10xj/6LXapB0eogErmEPlA=";
};

postPatch = ''
rm -rf vendor
'';

vendorHash = "sha256-SUqWVZe5Y0pBeRP7Zrp4WzvAB+lFkQioqJhi4L/Rqvs=";

ldflags = ["-s" "-w"];

doCheck = true;

subPackages = ["cmd/geth-hdwallet"];

meta = with lib; {
description = "Ethereum HD Wallet derivations in Go (golang)";
homepage = "https://github.com/miguelmota/go-ethereum-hdwallet";
license = with licenses; [mit];
mainProgram = "geth-hdwallet";
platforms = ["x86_64-linux"];
};
}

0 comments on commit 0910a32

Please sign in to comment.