diff --git a/packages/all-packages.nix b/packages/all-packages.nix index 060f5b34..51630f15 100644 --- a/packages/all-packages.nix +++ b/packages/all-packages.nix @@ -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 {}; diff --git a/packages/avalanche-cli/default.nix b/packages/avalanche-cli/default.nix new file mode 100644 index 00000000..2badf0c5 --- /dev/null +++ b/packages/avalanche-cli/default.nix @@ -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; + }; + } diff --git a/shell.nix b/shell.nix index 00f53ffc..8e805843 100644 --- a/shell.nix +++ b/shell.nix @@ -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