tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.bls12-381: 5.0.0 -> 6.1.0
Ulrik Strid
2 years ago
0a705f57
cf4ce518
+21
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
bls12-381
default.nix
+21
-14
pkgs/development/ocaml-modules/bls12-381/default.nix
···
1
1
-
{ lib, buildDunePackage, fetchFromGitLab
2
2
-
, ff-sig, zarith
1
1
+
{ lib
2
2
+
, buildDunePackage
3
3
+
, fetchFromGitLab
4
4
+
, zarith
3
5
, zarith_stubs_js ? null
4
6
, integers_stubs_js
5
5
-
, integers, hex
6
6
-
, alcotest, ff-pbt
7
7
+
, integers
8
8
+
, hex
9
9
+
, alcotest
7
10
}:
8
11
9
12
buildDunePackage rec {
10
13
pname = "bls12-381";
11
11
-
version = "5.0.0";
14
14
+
version = "6.1.0";
12
15
src = fetchFromGitLab {
13
13
-
owner = "dannywillems";
14
14
-
repo = "ocaml-bls12-381";
16
16
+
owner = "nomadic-labs";
17
17
+
repo = "cryptography/ocaml-bls12-381";
15
18
rev = version;
16
16
-
sha256 = "sha256-Hy/I+743HSToZgGPFFiAbx7nrybHsE2PwycDsu3DuHM=";
19
19
+
sha256 = "sha256-z2ZSOrXgm+XjdrY91vqxXSKhA0DyJz6JkkNljDZznX8=";
17
20
};
18
21
19
22
minimalOCamlVersion = "4.08";
20
20
-
duneVersion = "3";
23
23
+
24
24
+
postPatch = ''
25
25
+
patchShebangs ./src/*.sh
26
26
+
'';
21
27
22
28
propagatedBuildInputs = [
23
23
-
ff-sig
24
29
zarith
25
30
zarith_stubs_js
26
31
integers_stubs_js
27
27
-
integers
28
32
hex
33
33
+
integers
29
34
];
30
35
31
31
-
checkInputs = [ alcotest ff-pbt ];
36
36
+
checkInputs = [
37
37
+
alcotest
38
38
+
];
32
39
33
40
doCheck = true;
34
41
35
42
meta = {
36
36
-
homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381";
37
37
-
description = "OCaml binding for bls12-381 from librustzcash";
43
43
+
homepage = " https://nomadic-labs.gitlab.io/cryptography/ocaml-bls12-381/bls12-381/";
44
44
+
description = "Implementation of BLS12-381 and some cryptographic primitives built on top of it";
38
45
license = lib.licenses.mit;
39
46
maintainers = [ lib.maintainers.ulrikstrid ];
40
47
};