about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mec
diff options
context:
space:
mode:
authorUlrik Strid <ulrik.strid@outlook.com>2022-10-11 09:20:19 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2022-10-17 11:28:38 +0200
commitb9f3d3d3ac2e9aad7b684da3c69d813b1723d2ae (patch)
tree188ae39dffbd2e8c9c982ba6f83bb480facab947 /pkgs/development/ocaml-modules/mec
parent7b0295a10ab6890fe53e9a3befed1db5d3a50290 (diff)
ocamlPackages.mec: init at 0.1.0
Diffstat (limited to 'pkgs/development/ocaml-modules/mec')
-rw-r--r--pkgs/development/ocaml-modules/mec/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mec/default.nix b/pkgs/development/ocaml-modules/mec/default.nix
new file mode 100644
index 0000000000000..8381cf821ed34
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mec/default.nix
@@ -0,0 +1,39 @@
+{ lib, fetchzip, buildDunePackage, ocaml
+, zarith, eqaf, bigarray-compat, hex, ff-sig, ff
+, alcotest, bisect_ppx }:
+
+buildDunePackage rec {
+  pname = "mec";
+  version = "0.1.0";
+  src = fetchzip {
+    url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${version}/ocaml-ec-${version}.tar.bz2";
+    sha256 = "sha256-uIcGj/exSfuuzsv6C/bnJXpYRu3OY3dcKMW/7+qwi2U=";
+  };
+
+  minimalOCamlVersion = "4.12";
+
+  propagatedBuildInputs = [
+    eqaf
+    bigarray-compat
+    hex
+    ff-sig
+    ff
+    alcotest
+  ];
+
+  buildInputs = [
+    zarith
+  ];
+
+  checkInputs = [
+    alcotest
+    bisect_ppx
+  ];
+
+  meta = {
+    description = "Mec - Mini Elliptic Curve library";
+    homepage = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.ulrikstrid ];
+  };
+}