Skip to content

Commit 858636f

Browse files
committed
feat(pkgs/avalanche-cli): 1.4.2 -> unstable-2024-11-23 (6debe4169dce2)
1 parent 1227660 commit 858636f

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

packages/all-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@
136136
# Polkadot
137137
inherit polkadot polkadot-fast;
138138

139-
avalanche-cli = callPackage ./avalanche-cli/default.nix {};
139+
avalanche-cli = callPackage ./avalanche-cli/default.nix {
140+
inherit blst;
141+
};
140142

141143
inherit corepack-shims;
142144
}

packages/avalanche-cli/default.nix

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,36 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
blst,
6+
libusb1,
57
}:
68
buildGoModule rec {
79
pname = "avalanche-cli";
8-
version = "1.4.2";
10+
version = "unstable-2024-11-23";
911

1012
src = fetchFromGitHub {
1113
owner = "ava-labs";
1214
repo = "avalanche-cli";
13-
rev = "v${version}";
14-
hash = "sha256-KhUPQVOHHbRNhnEzHVPSB1JMgtbJKsm2NYMtIAK8kk4=";
15+
rev = "6debe4169dce2c64352d8c9d0d0acac49e573661";
16+
hash = "sha256-kYEgKpR6FM3f6Lq3Wxhi8MVh8ojxyqFYgjeu2E8lNcs=";
1517
};
1618

17-
doCheck = false;
1819
proxyVendor = true;
19-
vendorHash = "sha256-vhytojvmCOakN9RubjKkFnfA8tzOsOb+hKuACeQGSk4=";
20+
vendorHash = "sha256-FLuu2Q9O4kPtdT1LWaClv+96G0m0PFpZx22506V+Sts=";
21+
22+
doCheck = false;
23+
24+
ldflags = [
25+
"-X=github.com/ava-labs/avalanche-cli/cmd.Version=${version}"
26+
];
27+
28+
buildInputs = [blst libusb1];
2029

21-
meta = with lib; {
22-
description = "Avalanche CLI is a command line tool that gives developers access to everything Avalanche.";
30+
meta = {
31+
description = "";
2332
homepage = "https://github.com/ava-labs/avalanche-cli";
24-
license = licenses.lgpl3;
33+
# FIXME: nix-init did not find a license
34+
maintainers = with lib.maintainers; [];
35+
mainProgram = "avalanche-cli";
2536
};
2637
}

0 commit comments

Comments
 (0)