Skip to content

Commit 17acd15

Browse files
monyarmMartinNikov
authored andcommitted
feat(aztec): Add Aztec cli package
1 parent f243f59 commit 17acd15

File tree

2 files changed

+57
-17
lines changed

2 files changed

+57
-17
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-gQcBQN3BE5MHSAztooctb4VQtScx+3CNZlJy/Asya3s=";
12+
})
13+
(fetchurl {
14+
url = "https://install.aztec.network/aztec";
15+
hash = "sha256-ztxK3BGL4sn7zpLSvchkI3/rq4kZtShvEdgt7DfgUVw=";
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-+Eq1fdEyYihMa5RNQiaMC2319jjCm9Vz4MNIddMRkKY=";
24+
})
25+
(fetchurl {
26+
url = "https://install.aztec.network/aztec-wallet";
27+
hash = "sha256-Sx/nDFgWi9APZC2uwdRjquq3HSTnT1YdoXBhO3K88dI=";
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: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,26 @@
5353
];
5454
};
5555

56-
packages = {
57-
lido-withdrawals-automation = pkgs.callPackage ./lido-withdrawals-automation { };
58-
pyroscope = pkgs.callPackage ./pyroscope { };
59-
random-alerts = pkgs.callPackage ./random-alerts { };
60-
}
61-
// optionalAttrs (system == "x86_64-linux" || system == "aarch64-darwin") {
62-
secret = import ./secret { inherit inputs' pkgs; };
63-
}
64-
// optionalAttrs isLinux {
65-
folder-size-metrics = pkgs.callPackage ./folder-size-metrics { };
66-
}
67-
// optionalAttrs (system == "x86_64-linux") {
68-
mcl = pkgs.callPackage ./mcl {
69-
buildDubPackage = inputs'.dlang-nix.legacyPackages.buildDubPackage.override {
70-
dCompiler = inputs'.dlang-nix.packages."ldc-binary-1_38_0";
56+
packages =
57+
{
58+
lido-withdrawals-automation = pkgs.callPackage ./lido-withdrawals-automation { };
59+
pyroscope = pkgs.callPackage ./pyroscope { };
60+
random-alerts = pkgs.callPackage ./random-alerts { };
61+
}
62+
// optionalAttrs (system == "x86_64-linux" || system == "aarch64-darwin") {
63+
secret = import ./secret { inherit inputs' pkgs; };
64+
aztec = pkgs.callPackage ./aztec { };
65+
}
66+
// optionalAttrs isLinux {
67+
folder-size-metrics = pkgs.callPackage ./folder-size-metrics { };
68+
}
69+
// optionalAttrs (system == "x86_64-linux") {
70+
mcl = pkgs.callPackage ./mcl {
71+
buildDubPackage = inputs'.dlang-nix.legacyPackages.buildDubPackage.override {
72+
dCompiler = inputs'.dlang-nix.packages."ldc-binary-1_38_0";
73+
};
74+
inherit (legacyPackages.inputs.nixpkgs) cachix nix nix-eval-jobs;
7175
};
72-
inherit (legacyPackages.inputs.nixpkgs) cachix nix nix-eval-jobs;
7376
};
74-
};
7577
};
7678
}

0 commit comments

Comments
 (0)