Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / bls12-381-signature / default.nix
blobe7ca964750e06fe5f465fbc70785686c2739e6f0
1 { lib
2 , fetchzip
3 , buildDunePackage
4 , bls12-381
5 , alcotest
6 , bisect_ppx
7 , integers_stubs_js
9 }:
11 buildDunePackage rec {
12   pname = "bls12-381-signature";
13   version = "1.0.0";
14   src = fetchzip {
15     url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-${pname}/-/archive/${version}/ocaml-bls12-381-signature-${version}.tar.bz2";
16     sha256 = "sha256-KaUpAT+BWxmUP5obi4loR9vVUeQmz3p3zG3CBolUuL4=";
17   };
19   duneVersion = "3";
21   minimalOCamlVersion = "4.08";
23   propagatedBuildInputs = [ bls12-381 ];
25   checkInputs = [ alcotest bisect_ppx integers_stubs_js ];
27   doCheck = true;
29   meta = {
30     description = "Implementation of BLS signatures for the pairing-friendly curve BLS12-381";
31     license = lib.licenses.mit;
32     homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-bls12-381-signature";
33     maintainers = [ lib.maintainers.ulrikstrid ];
34   };