about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bls12-381/unix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/bls12-381/unix.nix')
-rw-r--r--pkgs/development/ocaml-modules/bls12-381/unix.nix40
1 files changed, 13 insertions, 27 deletions
diff --git a/pkgs/development/ocaml-modules/bls12-381/unix.nix b/pkgs/development/ocaml-modules/bls12-381/unix.nix
index 4da1a489e2c85..3ac3bb5d99f24 100644
--- a/pkgs/development/ocaml-modules/bls12-381/unix.nix
+++ b/pkgs/development/ocaml-modules/bls12-381/unix.nix
@@ -1,45 +1,31 @@
 { lib
 , buildDunePackage
-, rustc
-, cargo
-, dune-configurator
 , bls12-381
-, bls12-381-gen
-, ff-pbt
-, ff-sig
+, hex
+, integers
 , zarith
-, ctypes
-, tezos-rust-libs
 , alcotest
+, bisect_ppx
+, ff-pbt
 }:
 
 buildDunePackage {
   pname = "bls12-381-unix";
 
-  inherit (bls12-381-gen) version src useDune2 doCheck;
-
-  checkInputs = [
-    alcotest
-    ff-pbt
-  ];
-
-  buildInputs = [
-    rustc
-    cargo
-    dune-configurator
-  ];
+  inherit (bls12-381) version src useDune2 doCheck;
 
   propagatedBuildInputs = [
-    ff-sig
-    zarith
-    ctypes
-    bls12-381-gen
     bls12-381
-    tezos-rust-libs
+    hex
+    integers
+    zarith
   ];
 
-  # This is a hack to work around the hack used in the dune files
-  OPAM_SWITCH_PREFIX = "${tezos-rust-libs}";
+  checkInputs = [
+    alcotest
+    bisect_ppx
+    ff-pbt
+  ];
 
   meta = {
     description = "UNIX version of BLS12-381 primitives implementing the virtual package bls12-381";