12 src = fetchFromGitHub {
16 hash = "sha256-lb0kjPvpjqHQ+DUdrQmaSIaxEdwsOq29RTe3zL25NQc=";
19 vendorHash = "sha256-CN+2+aOOPF7gouvp7lCfRIKA1quNCcrvzHg8lF6J4f8=";
20 # go mod vendor has a bug, see: https://github.com/golang/go/issues/57529
23 buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
25 subPackages = [ "main" ];
30 "-X github.com/ava-labs/avalanchego/version.GitCommit=${version}"
34 mv $out/bin/{main,${pname}}
38 description = "Go implementation of an Avalanche node";
39 homepage = "https://github.com/ava-labs/avalanchego";
40 changelog = "https://github.com/ava-labs/avalanchego/releases/tag/v${version}";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ urandom qjoly ];
43 mainProgram = "avalanchego";