diff --git a/pkgs/development/ocaml-modules/secp256k1/default.nix b/pkgs/development/ocaml-modules/secp256k1/default.nix new file mode 100644 index 00000000000..69b276db90e --- /dev/null +++ b/pkgs/development/ocaml-modules/secp256k1/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchFromGitHub, buildDunePackage, base, stdio, configurator, secp256k1 }: + +buildDunePackage rec { + pname = "secp256k1"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "dakk"; + repo = "secp256k1-ml"; + rev = "42c04c93e2ed9596f6378676e944c8cfabfa69d7"; + sha256 = "1zw2kgg181a9lj1m8z0ybijs8gw9w1kk990avh1bp9x8kc1asffg"; + }; + + buildInputs = [ base stdio configurator secp256k1 ]; + + meta = with stdenv.lib; { + homepage = https://github.com/dakk/secp256k1-ml; + description = "Elliptic curve library secp256k1 wrapper for Ocaml"; + license = licenses.mit; + maintainers = [ maintainers.vyorkin ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 97dda19a10a..1df001895b7 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -593,6 +593,10 @@ let result = callPackage ../development/ocaml-modules/ocaml-result { }; + secp256k1 = callPackage ../development/ocaml-modules/secp256k1 { + inherit (pkgs) secp256k1; + }; + seq = callPackage ../development/ocaml-modules/seq { }; sequence = callPackage ../development/ocaml-modules/sequence { };