Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
888 B
Nix
44 lines
888 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
buildDunePackage,
|
|
base,
|
|
stdio,
|
|
dune-configurator,
|
|
secp256k1,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "secp256k1";
|
|
version = "0.4.4";
|
|
|
|
minimalOCamlVersion = "4.07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dakk";
|
|
repo = "secp256k1-ml";
|
|
rev = version;
|
|
hash = "sha256-22+dZb3MC1W5Qvsz3+IHV1/XiGCRmJHTH+6IW2QX2hU=";
|
|
};
|
|
|
|
patches = fetchpatch {
|
|
url = "https://github.com/dakk/secp256k1-ml/commit/9bde90a401746dcecdab68a2fdb95659d16a3022.patch";
|
|
hash = "sha256-QndtZJtPKPjuv84jDmXc9Q/xGLb/mNUGL4AvRecSFlQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
base
|
|
stdio
|
|
dune-configurator
|
|
secp256k1
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/dakk/secp256k1-ml";
|
|
description = "Elliptic curve library secp256k1 wrapper for Ocaml";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.vyorkin ];
|
|
};
|
|
}
|