Skip to content

Commit

Permalink
Add Avalanche-cli package (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Angel Valkov <avalkov@blockdaemon.com>
  • Loading branch information
avalkov and Angel Valkov authored Aug 15, 2023
1 parent 3326bed commit b703e18
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@

# Polkadot
inherit polkadot polkadot-fast;

avalanche-cli = callPackage ./avalanche-cli/default.nix {};
}
// lib.optionalAttrs hostPlatform.isLinux rec {
wasmd = callPackage ./wasmd/default.nix {};
Expand Down
23 changes: 23 additions & 0 deletions packages/avalanche-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{pkgs}:
with pkgs;
buildGoModule rec {
pname = "avalanche-cli";
version = "1.2.6";

src = fetchFromGitHub {
rev = "v${version}";
sha256 = "sha256-j4Sh+YeLefWllaMNvfu/t253DCvdDpRY6tmrmuttSm0=";
owner = "ava-labs";
repo = "avalanche-cli";
};

doCheck = false;
proxyVendor = true;
vendorSha256 = "sha256-tWitBzhkg8l4qesiFXHBW0j4FWw85tMtDLq2DsriGfc=";

meta = with lib; {
description = "Avalanche CLI is a command line tool that gives developers access to everything Avalanche.";
homepage = "https://github.com/ava-labs/avalanche-cli";
license = licenses.lgpl3;
};
}
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ in
# noir
self'.legacyPackages.noir.noir-native
self'.legacyPackages.noir.noir-wasm

# avalanche cli
metacraft-labs.avalanche-cli
]
++ lib.optionals (stdenv.hostPlatform.isx86) [
metacraft-labs.rapidsnark
Expand Down

0 comments on commit b703e18

Please sign in to comment.