Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitLab, 4 buildDunePackage, 5 gmp, 6 dune-configurator, 7 cstruct, 8 bigstring, 9 alcotest, 10 hex, 11}: 12 13buildDunePackage rec { 14 pname = "secp256k1-internal"; 15 version = "0.4"; 16 src = fetchFromGitLab { 17 owner = "nomadic-labs"; 18 repo = "ocaml-secp256k1-internal"; 19 rev = "v${version}"; 20 hash = "sha256-amVtp94cE1NxClWJgcJvRmilnQlC7z44mORUaxvPn00="; 21 }; 22 23 minimalOCamlVersion = "4.08"; 24 duneVersion = "3"; 25 26 propagatedBuildInputs = [ 27 gmp 28 cstruct 29 bigstring 30 ]; 31 32 buildInputs = [ 33 dune-configurator 34 ]; 35 36 checkInputs = [ 37 alcotest 38 hex 39 ]; 40 41 doCheck = true; 42 43 meta = { 44 description = "Bindings to secp256k1 internal functions (generic operations on the curve)"; 45 license = lib.licenses.mit; 46 maintainers = [ lib.maintainers.ulrikstrid ]; 47 }; 48}