Skip to content

Commit 55ac21e

Browse files
committedMar 23, 2017
ocamlPackages.nocrypto: 0.5.3 -> 0.5.4
1 parent 5e0d0f4 commit 55ac21e

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed
 

‎pkgs/development/ocaml-modules/nocrypto/default.nix

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
{ stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib
2-
, cstruct, zarith, ounit, ocaml_oasis, ppx_sexp_conv, sexplib
3-
, lwt ? null}:
1+
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opam, topkg
2+
, cpuid, ocb-stubblr
3+
, cstruct, zarith, ocaml_oasis, ppx_sexp_conv, sexplib
4+
, lwt ? null
5+
}:
46

57
with stdenv.lib;
68
let withLwt = lwt != null; in
79

8-
buildOcaml rec {
9-
name = "nocrypto";
10-
version = "0.5.3";
11-
12-
minimumSupportedOcamlVersion = "4.02";
10+
stdenv.mkDerivation rec {
11+
name = "ocaml${ocaml.version}-nocrypto-${version}";
12+
version = "0.5.4";
1313

1414
src = fetchFromGitHub {
1515
owner = "mirleft";
1616
repo = "ocaml-nocrypto";
1717
rev = "v${version}";
18-
sha256 = "0m3yvqpgfffqp15mcl08b78cv8zw25rnp6z1pkj5aimz6xg3gqbl";
18+
sha256 = "0nhnlpbqh3mf9y2cxivlvfb70yfbdpvg6jslzq64xblpgjyg443p";
1919
};
2020

21-
buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
21+
buildInputs = [ ocaml ocaml_oasis findlib ocamlbuild topkg opam cpuid ocb-stubblr
22+
ppx_sexp_conv ];
2223
propagatedBuildInputs = [ cstruct zarith sexplib ] ++ optional withLwt lwt;
2324

24-
configureFlags = [ "--enable-tests" ] ++ optional withLwt ["--enable-lwt"];
25-
26-
configurePhase = "./configure --prefix $out $configureFlags";
25+
buildPhase = ''
26+
LD_LIBRARY_PATH=${cpuid}/lib/ocaml/${ocaml.version}/site-lib/stubslibs/ \
27+
${topkg.buildPhase} --with-lwt ${if withLwt then "true" else "false"}
28+
'';
29+
inherit (topkg) installPhase;
2730

28-
doCheck = true;
29-
checkTarget = "test";
3031
createFindlibDestdir = true;
3132

3233
meta = {

0 commit comments

Comments
 (0)
Please sign in to comment.