Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
let
|
|
# A list of binaries to put into separate outputs
|
|
bins = [
|
|
"geth"
|
|
"clef"
|
|
];
|
|
|
|
in
|
|
buildGoModule rec {
|
|
pname = "go-ethereum";
|
|
version = "1.16.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum";
|
|
repo = "go-ethereum";
|
|
rev = "v${version}";
|
|
hash = "sha256-9g+RlOnV3DMLkak+RbSm8RgFB14Yuap8CT1w6kuZRv0=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-GEPSkuEdrYvPGXEGhAT3U765rjY6w6kwOVYOMCgOaCo=";
|
|
|
|
doCheck = false;
|
|
|
|
outputs = [ "out" ] ++ bins;
|
|
|
|
# Move binaries to separate outputs and symlink them back to $out
|
|
postInstall = lib.concatStringsSep "\n" (
|
|
map (
|
|
bin:
|
|
"mkdir -p \$${bin}/bin && mv $out/bin/${bin} \$${bin}/bin/ && ln -s \$${bin}/bin/${bin} $out/bin/"
|
|
) bins
|
|
);
|
|
|
|
subPackages = [
|
|
"cmd/abidump"
|
|
"cmd/abigen"
|
|
"cmd/blsync"
|
|
"cmd/clef"
|
|
"cmd/devp2p"
|
|
"cmd/era"
|
|
"cmd/ethkey"
|
|
"cmd/evm"
|
|
"cmd/geth"
|
|
"cmd/rlpdump"
|
|
"cmd/utils"
|
|
];
|
|
|
|
# Following upstream: https://github.com/ethereum/go-ethereum/blob/v1.11.6/build/ci.go#L218
|
|
tags = [ "urfave_cli_no_docs" ];
|
|
|
|
passthru.tests = { inherit (nixosTests) geth; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://geth.ethereum.org/";
|
|
description = "Official golang implementation of the Ethereum protocol";
|
|
license = with licenses; [
|
|
lgpl3Only
|
|
gpl3Only
|
|
];
|
|
maintainers = with maintainers; [
|
|
asymmetric
|
|
RaghavSood
|
|
];
|
|
mainProgram = "geth";
|
|
};
|
|
}
|