ocamlPackages.batteries: 2.8.0 -> 2.9.0

This commit is contained in:
Vincent Laporte 2018-09-11 16:37:27 +00:00
parent 7df273e71d
commit 65fcac82d3
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,23 +1,19 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qtest, num }:
let version = "2.8.0"; in
let version = "2.9.0"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-batteries-${version}";
src = fetchzip {
url = "https://github.com/ocaml-batteries-team/batteries-included/archive/v${version}.tar.gz";
sha256 = "1cvgljg8lxvfx0v3367z3p43dysg9m33v8gfy43bhw7fjr1bmyas";
sha256 = "1wianim29kkkf4c31k7injjp3ji69ki5krrp6csq8ycswg791dby";
};
buildInputs = [ ocaml findlib ocamlbuild qtest ];
propagatedBuildInputs = [ num ];
configurePhase = if num != null then ''
export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}${num}/lib/ocaml/${ocaml.version}/site-lib/stublibs/"
'' else "true"; # Skip configure
doCheck = true;
doCheck = !stdenv.lib.versionAtLeast ocaml.version "4.07";
checkTarget = "test test";
createFindlibDestdir = true;