ocamlPackages.nocrypto: 0.5.3 -> 0.5.4
This commit is contained in:
parent
5e0d0f4944
commit
55ac21e81d
@ -1,32 +1,33 @@
|
|||||||
{ stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opam, topkg
|
||||||
, cstruct, zarith, ounit, ocaml_oasis, ppx_sexp_conv, sexplib
|
, cpuid, ocb-stubblr
|
||||||
, lwt ? null}:
|
, cstruct, zarith, ocaml_oasis, ppx_sexp_conv, sexplib
|
||||||
|
, lwt ? null
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
let withLwt = lwt != null; in
|
let withLwt = lwt != null; in
|
||||||
|
|
||||||
buildOcaml rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nocrypto";
|
name = "ocaml${ocaml.version}-nocrypto-${version}";
|
||||||
version = "0.5.3";
|
version = "0.5.4";
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "4.02";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mirleft";
|
owner = "mirleft";
|
||||||
repo = "ocaml-nocrypto";
|
repo = "ocaml-nocrypto";
|
||||||
rev = "v${version}";
|
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;
|
propagatedBuildInputs = [ cstruct zarith sexplib ] ++ optional withLwt lwt;
|
||||||
|
|
||||||
configureFlags = [ "--enable-tests" ] ++ optional withLwt ["--enable-lwt"];
|
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;
|
||||||
|
|
||||||
configurePhase = "./configure --prefix $out $configureFlags";
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
checkTarget = "test";
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user