Skip to content

Commit a6534ea

Browse files
monyarmMartinNikov
authored andcommitted
feat(aztec): Add Aztec cli package
1 parent 0cfe584 commit a6534ea

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

packages/aztec/default.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
stdenv,
3+
fetchurl,
4+
lib,
5+
}:
6+
stdenv.mkDerivation {
7+
name = "aztec";
8+
srcs = [
9+
(fetchurl {
10+
url = "https://install.aztec.network/.aztec-run";
11+
hash = "sha256-sM7MgpyDpySicUECwK4TKLvn46qZ7P9GIG++nUMRHyo=";
12+
})
13+
(fetchurl {
14+
url = "https://install.aztec.network/aztec";
15+
hash = "sha256-3Ze2sTnEV9Nqso5lLRNUEi214LcoDbFLfGz51bq5T+k=";
16+
})
17+
(fetchurl {
18+
url = "https://install.aztec.network/aztec-up";
19+
hash = "sha256-Nb6yQt9/k608hEwT6QH2BvjTJ8dinAKbT1gtwP6ClFk=";
20+
})
21+
(fetchurl {
22+
url = "https://install.aztec.network/aztec-nargo";
23+
hash = "sha256-+Eq1fdEyYihMa5RNQiaMC2319jjCm9Vz4MNIddMRkKY=";
24+
})
25+
(fetchurl {
26+
url = "https://install.aztec.network/aztec-wallet";
27+
hash = "sha256-JHd5kn1x3UlGVJgk7YPn8pomDFspJKaZFYPT34yQY+s=";
28+
})
29+
];
30+
sourceRoot = ".";
31+
unpackCmd = "cp $curSrc $(basename $(stripHash $curSrc))";
32+
installPhase = ''
33+
mkdir -p $out/bin
34+
cp -r * .* $out/bin/
35+
mv $out/bin/aztec-run $out/bin/.aztec-run
36+
'';
37+
meta.mainProgram = "aztec";
38+
}

packages/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
}
6262
// optionalAttrs (system == "x86_64-linux" || system == "aarch64-darwin") {
6363
secret = import ./secret { inherit inputs' pkgs; };
64+
aztec = pkgs.callPackage ./aztec { };
6465
}
6566
// optionalAttrs isLinux {
6667
folder-size-metrics = pkgs.callPackage ./folder-size-metrics { };

0 commit comments

Comments
 (0)