Skip to content

Commit f3450e4

Browse files
committed
zokrates initial commit
1 parent 2ca15a8 commit f3450e4

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

packages/all-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@
103103
};
104104
polkadot = polkadot-generic {};
105105
polkadot-fast = polkadot-generic {enableFastRuntime = true;};
106+
107+
zokrates = callPackage ./zokrates/default.nix {};
106108
in {
107109
legacyPackages.metacraft-labs =
108110
rec {
@@ -148,6 +150,8 @@
148150

149151
# Polkadot
150152
inherit polkadot polkadot-fast;
153+
154+
inherit zokrates;
151155
}
152156
// lib.optionalAttrs hostPlatform.isLinux rec {
153157
wasmd = callPackage ./wasmd/default.nix {};

packages/zokrates/default.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
lib,
3+
fetchgit,
4+
stdenv,
5+
pkgs,
6+
}:
7+
stdenv.mkDerivation rec {
8+
pname = "zokrates";
9+
version = "0.8.4";
10+
11+
src = fetchgit {
12+
url = "https://github.com/Zokrates/ZoKrates.git";
13+
rev = "v${version}";
14+
sha256 = "sha256-DFfY6FVKvajqbS28xCvRh/Hf+Qi1cx2XZ34gboZG9XE=";
15+
};
16+
17+
nativeBuildInputs = with pkgs; [];
18+
buildInputs = with pkgs; [];
19+
}

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ in
3434

3535
metacraft-labs.polkadot
3636
metacraft-labs.polkadot-fast
37+
38+
metacraft-labs.zokrates
3739
]
3840
++ lib.optionals (stdenv.hostPlatform.isx86) [
3941
metacraft-labs.rapidsnark

0 commit comments

Comments
 (0)