Skip to content

Commit d7a7559

Browse files
committed
zokrates initial commit
1 parent d38f65f commit d7a7559

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

overlay.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ _finalNixpkgs: prevNixpkgs: let
4242
leap = prevNixpkgs.callPackage ./packages/leap/default.nix {};
4343
eos-vm = prevNixpkgs.callPackage ./packages/eos-vm/default.nix {};
4444
cdt = prevNixpkgs.callPackage ./packages/cdt/default.nix {};
45+
46+
zokrates = prevNixpkgs.callPackage ./packages/zokrates/default.nix {};
4547
in {
4648
metacraft-labs = rec {
4749
solana = solana-full-sdk;
@@ -60,5 +62,6 @@ in {
6062
inherit leap;
6163
inherit eos-vm;
6264
inherit cdt;
65+
inherit zokrates;
6366
};
6467
}

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ with pkgs;
1414
metacraft-labs.circom
1515
metacraft-labs.circ
1616
metacraft-labs.go-opera
17+
metacraft-labs.zokrates
1718
]
1819
++ lib.optionals (!stdenv.isDarwin) [
1920
# Solana is still not compatible with macOS on M1

0 commit comments

Comments
 (0)