forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / ocaml-modules / bls12-381 / default.nix
blobf5e7bbbb6f6d2740c86ca22ca9def1bc3345ca10
1 { lib
2 , buildDunePackage
3 , fetchFromGitLab
4 , zarith
5 , zarith_stubs_js ? null
6 , integers_stubs_js
7 , integers
8 , hex
9 , alcotest
12 buildDunePackage rec {
13   pname = "bls12-381";
14   version = "6.1.0";
15   src = fetchFromGitLab {
16     owner = "nomadic-labs";
17     repo = "cryptography/ocaml-bls12-381";
18     rev = version;
19     hash = "sha256-z2ZSOrXgm+XjdrY91vqxXSKhA0DyJz6JkkNljDZznX8=";
20   };
22   minimalOCamlVersion = "4.08";
24   postPatch = ''
25     patchShebangs ./src/*.sh
26   '';
28   propagatedBuildInputs = [
29     zarith
30     zarith_stubs_js
31     integers_stubs_js
32     hex
33     integers
34   ];
36   checkInputs = [
37     alcotest
38   ];
40   doCheck = true;
42   meta = {
43     homepage = "        https://nomadic-labs.gitlab.io/cryptography/ocaml-bls12-381/bls12-381/";
44     description = "Implementation of BLS12-381 and some cryptographic primitives built on top of it";
45     license = lib.licenses.mit;
46     maintainers = [ lib.maintainers.ulrikstrid ];
47   };