45 lines
1000 B
Nix
45 lines
1000 B
Nix
{
|
|
lib,
|
|
bls_1_86,
|
|
fetchFromGitHub,
|
|
buildGo125Module,
|
|
}:
|
|
buildGo125Module rec {
|
|
pname = "eth-beacon-genesis";
|
|
version = "0.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethpandaops";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-p6MqgGoepUI2M26vYDIsMzMljV213r5Ky9JHXrMnne8=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-fl/R9CyfKcvQe1KGjQC9iLE6gKdnJ60mAXoSxMqIfuo=";
|
|
|
|
subPackages = [ "cmd/eth-genesis-state-generator" ];
|
|
|
|
buildInputs = [ bls_1_86 ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ethpandaops/eth-beacon-genesis/buildinfo.BuildVersion=v${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Ethereum beacon chain genesis state generator";
|
|
homepage = "https://github.com/ethpandaops/eth-beacon-genesis";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "eth-genesis-state-generator";
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
};
|
|
}
|