about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-03-22 22:53:28 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-23 06:29:36 +0000
commit55ac21e81d5787428be4fa9ec0e50329eacb1f79 (patch)
tree22a9a1531d041f9fc24a911c2538ed90ac16d061 /pkgs/development/ocaml-modules
parent5e0d0f4944f312875b722dc42a58e3a9c6aa92bd (diff)
downloadnixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar.gz
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar.bz2
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar.lz
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar.xz
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.tar.zst
nixlib-55ac21e81d5787428be4fa9ec0e50329eacb1f79.zip
ocamlPackages.nocrypto: 0.5.3 -> 0.5.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/nocrypto/default.nix31
1 files changed, 16 insertions, 15 deletions
diff --git a/pkgs/development/ocaml-modules/nocrypto/default.nix b/pkgs/development/ocaml-modules/nocrypto/default.nix
index d7f7ae0e3655..f9240f7507cf 100644
--- a/pkgs/development/ocaml-modules/nocrypto/default.nix
+++ b/pkgs/development/ocaml-modules/nocrypto/default.nix
@@ -1,32 +1,33 @@
-{ stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib
-, cstruct, zarith, ounit, ocaml_oasis, ppx_sexp_conv, sexplib
-, lwt ? null}:
+{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opam, topkg
+, cpuid, ocb-stubblr
+, cstruct, zarith, ocaml_oasis, ppx_sexp_conv, sexplib
+, lwt ? null
+}:
 
 with stdenv.lib;
 let withLwt = lwt != null; in
 
-buildOcaml rec {
-  name = "nocrypto";
-  version = "0.5.3";
-
-  minimumSupportedOcamlVersion = "4.02";
+stdenv.mkDerivation rec {
+  name = "ocaml${ocaml.version}-nocrypto-${version}";
+  version = "0.5.4";
 
   src = fetchFromGitHub {
     owner  = "mirleft";
     repo   = "ocaml-nocrypto";
     rev    = "v${version}";
-    sha256 = "0m3yvqpgfffqp15mcl08b78cv8zw25rnp6z1pkj5aimz6xg3gqbl";
+    sha256 = "0nhnlpbqh3mf9y2cxivlvfb70yfbdpvg6jslzq64xblpgjyg443p";
   };
 
-  buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
+  buildInputs = [ ocaml ocaml_oasis findlib ocamlbuild topkg opam cpuid ocb-stubblr
+    ppx_sexp_conv ];
   propagatedBuildInputs = [ cstruct zarith sexplib ] ++ optional withLwt lwt;
 
-  configureFlags = [ "--enable-tests" ] ++ optional withLwt ["--enable-lwt"];
-
-  configurePhase = "./configure --prefix $out $configureFlags";
+  buildPhase = ''
+    LD_LIBRARY_PATH=${cpuid}/lib/ocaml/${ocaml.version}/site-lib/stubslibs/ \
+    ${topkg.buildPhase} --with-lwt ${if withLwt then "true" else "false"}
+  '';
+  inherit (topkg) installPhase;
 
-  doCheck = true;
-  checkTarget = "test";
   createFindlibDestdir = true;
 
   meta = {