5d26766cbf
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
50 lines
911 B
Nix
50 lines
911 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
buildDunePackage,
|
|
gmp,
|
|
dune-configurator,
|
|
cstruct,
|
|
bigstring,
|
|
alcotest,
|
|
hex,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "secp256k1-internal";
|
|
version = "0.4";
|
|
src = fetchFromGitLab {
|
|
owner = "nomadic-labs";
|
|
repo = "ocaml-secp256k1-internal";
|
|
rev = "v${finalAttrs.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)";
|
|
homepage = "https://gitlab.com/nomadic-labs/ocaml-secp256k1-internal";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
};
|
|
})
|