2021-07-16 19:40:57 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, buildDunePackage
|
|
|
|
, gmp
|
|
|
|
, dune-configurator
|
|
|
|
, cstruct
|
|
|
|
, bigstring
|
|
|
|
, alcotest
|
|
|
|
, hex
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "secp256k1-internal";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.3";
|
2021-07-16 19:40:57 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "ocaml-secp256k1-internal";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-1wvQ4RW7avcGsIc0qgDzhGrwOBY0KHrtNVHCj2cgNzo=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gmp
|
|
|
|
cstruct
|
|
|
|
bigstring
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dune-configurator
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-07-16 19:40:57 +00:00
|
|
|
alcotest
|
|
|
|
hex
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings to secp256k1 internal functions (generic operations on the curve)";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|