depot/third_party/nixpkgs/pkgs/development/ocaml-modules/secp256k1-internal/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

47 lines
804 B
Nix

{ lib
, fetchFromGitLab
, buildDunePackage
, gmp
, dune-configurator
, cstruct
, bigstring
, alcotest
, hex
}:
buildDunePackage rec {
pname = "secp256k1-internal";
version = "0.4";
src = fetchFromGitLab {
owner = "nomadic-labs";
repo = "ocaml-secp256k1-internal";
rev = "v${version}";
hash = "sha256-amVtp94cE1NxClWJgcJvRmilnQlC7z44mORUaxvPn00=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [
gmp
cstruct
bigstring
];
buildInputs = [
dune-configurator
];
checkInputs = [
alcotest
hex
];
doCheck = true;
meta = {
description = "Bindings to secp256k1 internal functions (generic operations on the curve)";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}