Skip to content

Commit 3aea494

Browse files
authored
avalanchego: 1.11.11 -> 1.12.0-initial-poc.6 (#351441)
2 parents c161297 + 0720e51 commit 3aea494

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed
Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
{ IOKit
2-
, buildGoModule
3-
, fetchFromGitHub
4-
, lib
5-
, stdenv
1+
{
2+
buildGoModule,
3+
fetchFromGitHub,
4+
lib,
5+
nix-update-script,
6+
stdenv,
67
}:
78

89
buildGoModule rec {
910
pname = "avalanchego";
10-
version = "1.11.11";
11+
version = "1.12.0-initial-poc.6";
1112

1213
src = fetchFromGitHub {
1314
owner = "ava-labs";
14-
repo = pname;
15-
rev = "v${version}";
16-
hash = "sha256-9NhwxB5AeGvQgZbjNu5WWHiP194ws7s1WDtCntLr//g=";
15+
repo = "avalanchego";
16+
rev = "refs/tags/v${version}";
17+
hash = "sha256-LBwmoegsBWC2xlTc3BJDxyYX58b+X7g5xl9vnThVHW0=";
1718
};
1819

19-
vendorHash = "sha256-A8Bf/KzTFvC/hFLU1k6M89649wjoqnIXRQ1uJaTj9YA=";
20-
# go mod vendor has a bug, see: https://github.com/golang/go/issues/57529
20+
# https://github.com/golang/go/issues/57529
2121
proxyVendor = true;
2222

23-
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
23+
vendorHash = "sha256-slu0f0Y33aGuVpN5pZcRp9RJAXcLnZyUNO7pFdm+HrY=";
24+
2425

2526
subPackages = [ "main" ];
2627

@@ -34,12 +35,17 @@ buildGoModule rec {
3435
mv $out/bin/{main,${pname}}
3536
'';
3637

37-
meta = with lib; {
38+
passthru.updateScript = nix-update-script { };
39+
40+
meta = {
3841
description = "Go implementation of an Avalanche node";
3942
homepage = "https://github.com/ava-labs/avalanchego";
4043
changelog = "https://github.com/ava-labs/avalanchego/releases/tag/v${version}";
41-
license = licenses.bsd3;
42-
maintainers = with maintainers; [ urandom qjoly ];
44+
license = lib.licenses.bsd3;
45+
maintainers = with lib.maintainers; [
46+
urandom
47+
qjoly
48+
];
4349
mainProgram = "avalanchego";
4450
};
4551
}

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27895,10 +27895,6 @@ with pkgs;
2789527895

2789627896
av-98 = callPackage ../applications/networking/browsers/av-98 { };
2789727897

27898-
avalanchego = callPackage ../applications/networking/avalanchego {
27899-
inherit (darwin.apple_sdk.frameworks) IOKit;
27900-
};
27901-
2790227898
avizo = callPackage ../applications/misc/avizo { };
2790327899

2790427900
avocode = callPackage ../applications/graphics/avocode { };

0 commit comments

Comments
 (0)