10 pname = "avalanchego";
11 version = "1.12.0-initial-poc.6";
13 src = fetchFromGitHub {
16 rev = "refs/tags/v${version}";
17 hash = "sha256-LBwmoegsBWC2xlTc3BJDxyYX58b+X7g5xl9vnThVHW0=";
20 # https://github.com/golang/go/issues/57529
23 vendorHash = "sha256-slu0f0Y33aGuVpN5pZcRp9RJAXcLnZyUNO7pFdm+HrY=";
26 subPackages = [ "main" ];
31 "-X github.com/ava-labs/avalanchego/version.GitCommit=${version}"
35 mv $out/bin/{main,${pname}}
38 passthru.updateScript = nix-update-script { };
41 description = "Go implementation of an Avalanche node";
42 homepage = "https://github.com/ava-labs/avalanchego";
43 changelog = "https://github.com/ava-labs/avalanchego/releases/tag/v${version}";
44 license = lib.licenses.bsd3;
45 maintainers = with lib.maintainers; [
49 mainProgram = "avalanchego";