Skip to content

Commit 1227660

Browse files
committed
build(pkgs/avalanche-cli): Specify package dependencies as explicit args
1 parent ef4e5db commit 1227660

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

packages/avalanche-cli/default.nix

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
{pkgs}:
2-
with pkgs;
3-
buildGoModule rec {
4-
pname = "avalanche-cli";
5-
version = "1.4.2";
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
}:
6+
buildGoModule rec {
7+
pname = "avalanche-cli";
8+
version = "1.4.2";
69

7-
src = fetchFromGitHub {
8-
rev = "v${version}";
9-
sha256 = "sha256-KhUPQVOHHbRNhnEzHVPSB1JMgtbJKsm2NYMtIAK8kk4=";
10-
owner = "ava-labs";
11-
repo = "avalanche-cli";
12-
};
10+
src = fetchFromGitHub {
11+
owner = "ava-labs";
12+
repo = "avalanche-cli";
13+
rev = "v${version}";
14+
hash = "sha256-KhUPQVOHHbRNhnEzHVPSB1JMgtbJKsm2NYMtIAK8kk4=";
15+
};
1316

14-
doCheck = false;
15-
proxyVendor = true;
16-
vendorHash = "sha256-vhytojvmCOakN9RubjKkFnfA8tzOsOb+hKuACeQGSk4=";
17+
doCheck = false;
18+
proxyVendor = true;
19+
vendorHash = "sha256-vhytojvmCOakN9RubjKkFnfA8tzOsOb+hKuACeQGSk4=";
1720

18-
meta = with lib; {
19-
description = "Avalanche CLI is a command line tool that gives developers access to everything Avalanche.";
20-
homepage = "https://github.com/ava-labs/avalanche-cli";
21-
license = licenses.lgpl3;
22-
};
23-
}
21+
meta = with lib; {
22+
description = "Avalanche CLI is a command line tool that gives developers access to everything Avalanche.";
23+
homepage = "https://github.com/ava-labs/avalanche-cli";
24+
license = licenses.lgpl3;
25+
};
26+
}

0 commit comments

Comments
 (0)