2021-01-11 13:14:57 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, base, stdio, dune-configurator, secp256k1 }:
|
2019-08-02 15:34:38 +00:00
|
|
|
|
2020-10-08 18:39:50 +00:00
|
|
|
buildDunePackage rec {
|
2019-08-02 15:34:38 +00:00
|
|
|
pname = "secp256k1";
|
2023-01-20 07:07:06 +00:00
|
|
|
version = "0.4.4";
|
2019-08-02 15:34:38 +00:00
|
|
|
|
2024-04-09 06:02:45 +00:00
|
|
|
minimalOCamlVersion = "4.07";
|
2023-05-02 04:08:44 +00:00
|
|
|
|
2019-08-02 15:34:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dakk";
|
|
|
|
repo = "secp256k1-ml";
|
2020-10-08 18:39:50 +00:00
|
|
|
rev = version;
|
2023-01-20 07:07:06 +00:00
|
|
|
hash = "sha256-22+dZb3MC1W5Qvsz3+IHV1/XiGCRmJHTH+6IW2QX2hU=";
|
2019-08-02 15:34:38 +00:00
|
|
|
};
|
|
|
|
|
2020-10-08 18:39:50 +00:00
|
|
|
buildInputs = [ base stdio dune-configurator secp256k1 ];
|
2019-08-02 15:34:38 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dakk/secp256k1-ml";
|
2019-08-02 15:34:38 +00:00
|
|
|
description = "Elliptic curve library secp256k1 wrapper for Ocaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|