Skip to content

Commit 0802026

Browse files
monyarmPetarKirov
authored andcommitted
feat(aztec): Add Aztec cli package
1 parent 9c188ef commit 0802026

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

packages/aztec/default.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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-hLLneMb+RE/+btcIz/pK54Diz5N8i4tsKz+1zZatlPQ=";
12+
})
13+
(fetchurl {
14+
url = "https://install.aztec.network/aztec";
15+
hash = "sha256-Z3tst1Fn5dQibZzaSnXzPz3DPwY6bkiRSeilM5DZbro=";
16+
})
17+
(fetchurl {
18+
url = "https://install.aztec.network/aztec-up";
19+
hash = "sha256-9mJWn+cj8loFkw/RhpV/y1rGapMYYTmiCiDmUJqeqdc=";
20+
})
21+
(fetchurl {
22+
url = "https://install.aztec.network/aztec-nargo";
23+
hash = "sha256-9T9m/Ops1O/uYKNIaBxZ9RC+q7ADQnMjRDU4oTbSORA=";
24+
})
25+
(fetchurl {
26+
url = "https://install.aztec.network/aztec-wallet";
27+
hash = "sha256-WZvmrVWEnxVRh/zwhaTk6PWSHBD8ElgX8ivODFUUZzU=";
28+
})
29+
];
30+
sourceRoot = ".";
31+
unpackCmd = ''
32+
curTrg=$(basename $(stripHash $curSrc))
33+
cp $curSrc $curTrg
34+
chmod +x $curTrg
35+
'';
36+
installPhase = ''
37+
mkdir -p $out/bin
38+
cp -r * .* $out/bin/
39+
mv $out/bin/aztec-run $out/bin/.aztec-run
40+
'';
41+
meta.mainProgram = "aztec";
42+
}

packages/default.nix

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

0 commit comments

Comments
 (0)