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
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "avalanchego";
|
|
version = "1.13.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ava-labs";
|
|
repo = "avalanchego";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-XGRGjoZyhvcQFhfZIYdljT77SUxrWhD46F6ckxD602Q=";
|
|
};
|
|
|
|
# https://github.com/golang/go/issues/57529
|
|
proxyVendor = true;
|
|
|
|
vendorHash = "sha256-mff3Hlkp6gfq8HS7ypz9QikbDo98SwHF3g3Bq3i9RMY=";
|
|
|
|
subPackages = [ "main" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ava-labs/avalanchego/version.GitCommit=${finalAttrs.version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{main,avalanchego}
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Go implementation of an Avalanche node";
|
|
homepage = "https://github.com/ava-labs/avalanchego";
|
|
changelog = "https://github.com/ava-labs/avalanchego/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
urandom
|
|
qjoly
|
|
];
|
|
mainProgram = "avalanchego";
|
|
};
|
|
})
|