about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix b/nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix
new file mode 100644
index 000000000000..d7daba263c65
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/bls12-381/gen.nix
@@ -0,0 +1,30 @@
+{ lib, fetchFromGitLab, buildDunePackage, ff-sig, zarith }:
+
+buildDunePackage rec {
+  pname = "bls12-381-gen";
+  version = "0.4.2";
+
+  src = fetchFromGitLab {
+      owner = "dannywillems";
+      repo = "ocaml-bls12-381";
+      rev = version;
+      sha256 = "0jxc8qrdn74brmzjns1xycv3cb257kx5pa3ripgl9ci4njkv87n2";
+  };
+  useDune2 = true;
+
+  minimalOCamlVersion = "4.08";
+
+  propagatedBuildInputs = [
+    ff-sig
+    zarith
+  ];
+
+  doCheck = true;
+
+  meta = {
+    homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381";
+    description = "Functors to generate BLS12-381 primitives based on stubs";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.ulrikstrid ];
+  };
+}