Skip to content

Commit 4aaa94e

Browse files
authored
avalanchego: fix build & 1.12.1 -> 1.13.0 (#411802)
2 parents 88e35d9 + ef559bc commit 4aaa94e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,49 @@
11
{
2-
buildGoModule,
2+
buildGo123Module,
33
fetchFromGitHub,
44
lib,
55
nix-update-script,
6-
stdenv,
76
}:
87

9-
buildGoModule rec {
8+
buildGo123Module (finalAttrs: {
109
pname = "avalanchego";
11-
version = "1.12.1";
10+
version = "1.13.0";
1211

1312
src = fetchFromGitHub {
1413
owner = "ava-labs";
1514
repo = "avalanchego";
16-
tag = "v${version}";
17-
hash = "sha256-elbY0KNsOmKSTX61nps2tjIFTJH5Nnqmwq6mWwd88aE=";
15+
tag = "v${finalAttrs.version}";
16+
hash = "sha256-t6KruPHt51wJ4aJaCG/8tuwKYtaifHvQ3z9oVknNS4E=";
1817
};
1918

2019
# https://github.com/golang/go/issues/57529
2120
proxyVendor = true;
2221

23-
vendorHash = "sha256-HRhgnf6vHBrJTHspH+HwR3g5o63i+dCm7kPuBKdSV8s=";
22+
vendorHash = "sha256-iyx9k8mPPOwpHo9lEdNPf0sQHxbKbNTVLUZrPYY8dWM=";
2423

2524
subPackages = [ "main" ];
2625

2726
ldflags = [
2827
"-s"
2928
"-w"
30-
"-X github.com/ava-labs/avalanchego/version.GitCommit=${version}"
29+
"-X github.com/ava-labs/avalanchego/version.GitCommit=${finalAttrs.version}"
3130
];
3231

3332
postInstall = ''
34-
mv $out/bin/{main,${pname}}
33+
mv $out/bin/{main,avalanchego}
3534
'';
3635

3736
passthru.updateScript = nix-update-script { };
3837

3938
meta = {
4039
description = "Go implementation of an Avalanche node";
4140
homepage = "https://github.com/ava-labs/avalanchego";
42-
changelog = "https://github.com/ava-labs/avalanchego/releases/tag/v${version}";
41+
changelog = "https://github.com/ava-labs/avalanchego/releases/tag/${finalAttrs.src.tag}";
4342
license = lib.licenses.bsd3;
4443
maintainers = with lib.maintainers; [
4544
urandom
4645
qjoly
4746
];
4847
mainProgram = "avalanchego";
4948
};
50-
}
49+
})

0 commit comments

Comments
 (0)