Skip to content

Commit

Permalink
Merge pull request #46532 from vbgl/ocaml-batteries-2.9.0
Browse files Browse the repository at this point in the history
ocamlPackages.batteries: 2.8.0 -> 2.9.0
  • Loading branch information
xeji committed Sep 17, 2018
2 parents 37c3d6c + 1003e6e commit 19996db
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pkgs/development/ocaml-modules/batteries/default.nix
Original file line number Diff line number Diff line change
@@ -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" && !stdenv.isAarch64;
checkTarget = "test test";

createFindlibDestdir = true;
Expand Down

0 comments on commit 19996db

Please sign in to comment.