Skip to content

Commit 1cee64f

Browse files
authored
snarkjs: init at 0.7.3 (nix-community#507)
1 parent 86755c0 commit 1cee64f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

pkgs/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
rotki-bin = callPackage ./rotki-bin {};
6363
sedge = callPackage ./sedge {inherit bls mcl;};
6464
slither = callPackage ./slither {};
65+
snarkjs = callPackage ./snarkjs {};
6566
ssvnode = callPackage ./ssvnode {inherit bls mcl;};
6667
staking-deposit-cli = callPackage ./staking-deposit-cli {};
6768
teku = callPackage ./teku {};
@@ -129,6 +130,7 @@
129130
rotki-bin.bin = "rotki";
130131
sedge.bin = "sedge";
131132
slither.bin = "slither";
133+
snarkjs.bin = "snarkjs";
132134
ssvnode.bin = "ssvnode";
133135
staking-deposit-cli.bin = "deposit";
134136
teku.bin = "teku";

pkgs/snarkjs/default.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
buildNpmPackage,
3+
fetchFromGitHub,
4+
lib,
5+
nodejs,
6+
}:
7+
buildNpmPackage rec {
8+
pname = "snarkjs";
9+
version = "0.7.3";
10+
11+
src = fetchFromGitHub {
12+
owner = "iden3";
13+
repo = pname;
14+
rev = "v${version}";
15+
hash = "sha256-1bsYaVw07k5gOovA3hUb85k24PBbmLYbTPN4HKTR62w=";
16+
};
17+
18+
npmDepsHash = "sha256-cASHuNEH5g6D1CSScp12JQ4in8dddG4EEFW5INHLMg8=";
19+
20+
meta = with lib; {
21+
description = "zkSNARK implementation in JavaScript & WASM";
22+
homepage = "https://github.com/iden3/snarkjs";
23+
license = with licenses; [gpl3Only];
24+
inherit (nodejs.meta) platforms;
25+
};
26+
}

0 commit comments

Comments
 (0)