mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
785 B
Nix
47 lines
785 B
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, buildDunePackage
|
|
, gmp
|
|
, dune-configurator
|
|
, cstruct
|
|
, bigstring
|
|
, alcotest
|
|
, hex
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "secp256k1-internal";
|
|
version = "0.3";
|
|
src = fetchFromGitLab {
|
|
owner = "nomadic-labs";
|
|
repo = "ocaml-secp256k1-internal";
|
|
rev = version;
|
|
sha256 = "sha256-1wvQ4RW7avcGsIc0qgDzhGrwOBY0KHrtNVHCj2cgNzo=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
propagatedBuildInputs = [
|
|
gmp
|
|
cstruct
|
|
bigstring
|
|
];
|
|
|
|
buildInputs = [
|
|
dune-configurator
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
alcotest
|
|
hex
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Bindings to secp256k1 internal functions (generic operations on the curve)";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
};
|
|
}
|