about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix20
1 files changed, 4 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix b/nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix
index 08bb426d8abc..e7426cf10e9d 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/bls12-381/default.nix
@@ -1,34 +1,22 @@
-{ lib, fetchFromGitLab, buildDunePackage, ff, zarith, ctypes, tezos-rust-libs, alcotest }:
+{ lib, buildDunePackage, bls12-381-gen, ff-sig, zarith, ctypes, alcotest }:
 
 buildDunePackage rec {
   pname = "bls12-381";
-  version = "0.3.15";
 
-  src = fetchFromGitLab {
-    owner = "dannywillems";
-    repo = "ocaml-bls12-381";
-    rev = version;
-    sha256 = "1s8n657fsl2gs01p7v2ffpcfzymavifhhpriyx1gq5qh4zvvw4vr";
-  };
-  useDune2 = true;
+  inherit (bls12-381-gen) version src useDune2 doCheck;
 
   minimalOCamlVersion = "4.08";
   propagatedBuildInputs = [
-    ff
+    ff-sig
     zarith
     ctypes
-    tezos-rust-libs
+    bls12-381-gen
   ];
 
   checkInputs = [
     alcotest
   ];
 
-  # This is a hack to work around the hack used in the dune files
-  OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";
-
-  doCheck = true;
-
   meta = {
     homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381";
     description = "OCaml binding for bls12-381 from librustzcash";