summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/secp256k1/default.nix
blob: 00233beefd94a1e74d865fefa3c728dd977ec843 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, fetchFromGitHub, buildDunePackage, base, stdio, dune-configurator, secp256k1 }:

buildDunePackage rec {
  pname = "secp256k1";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "dakk";
    repo = "secp256k1-ml";
    rev = version;
    hash = "sha256-22+dZb3MC1W5Qvsz3+IHV1/XiGCRmJHTH+6IW2QX2hU=";
  };

  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 ];
  };
}