Skip to content

Commit

Permalink
ocamlPackages.batteries: 2.7.0 -> 2.8.0
Browse files Browse the repository at this point in the history
Also renames the attribute from ocaml_batteries to batteries.
  • Loading branch information
vbgl committed Nov 14, 2017
1 parent a3aae2c commit 26798bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/fstar/default.nix
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];

buildInputs = with ocamlPackages; [
z3 ocaml findlib ocaml_batteries menhir stdint
z3 ocaml findlib batteries menhir stdint
zarith camlp4 yojson pprint
];

Expand Down
13 changes: 8 additions & 5 deletions pkgs/development/ocaml-modules/batteries/default.nix
@@ -1,18 +1,21 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qtest }:
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qtest, num }:

let version = "2.7.0"; in
let version = "2.8.0"; in

stdenv.mkDerivation {
name = "ocaml-batteries-${version}";
name = "ocaml${ocaml.version}-batteries-${version}";

src = fetchzip {
url = "https://github.com/ocaml-batteries-team/batteries-included/archive/v${version}.tar.gz";
sha256 = "02rgfylz6x4y2030cclf9zwk2i8xqsydn1y9hjkja2qsk895bwfb";
sha256 = "1cvgljg8lxvfx0v3367z3p43dysg9m33v8gfy43bhw7fjr1bmyas";
};

buildInputs = [ ocaml findlib ocamlbuild qtest ];
propagatedBuildInputs = [ num ];

configurePhase = "true"; # Skip configure
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;
checkTarget = "test test";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/sqlexpr/default.nix
@@ -1,4 +1,4 @@
{ stdenv, buildOcaml, fetchurl, ocaml_batteries, csv, ocaml_lwt, ocaml_sqlite3, estring }:
{ stdenv, buildOcaml, fetchurl, batteries, csv, ocaml_lwt, ocaml_sqlite3, estring }:

buildOcaml rec {
name = "sqlexpr";
Expand All @@ -9,7 +9,7 @@ buildOcaml rec {
sha256 = "02pi0xxr3xzalwpvcaq96k57wz2vxj20l2mga1a4d2ddvhran8kr";
};

propagatedBuildInputs = [ ocaml_batteries csv ocaml_lwt ocaml_sqlite3 estring ];
propagatedBuildInputs = [ batteries csv ocaml_lwt ocaml_sqlite3 estring ];

meta = with stdenv.lib; {
homepage = https://github.com/mfp/ocaml-sqlexpr;
Expand Down
5 changes: 2 additions & 3 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -56,6 +56,8 @@ let

bap = callPackage ../development/ocaml-modules/bap { cmdliner = cmdliner_0_9; };

batteries = callPackage ../development/ocaml-modules/batteries { };

bitstring = callPackage ../development/ocaml-modules/bitstring { };

bolt = callPackage ../development/ocaml-modules/bolt { };
Expand Down Expand Up @@ -286,7 +288,6 @@ let
inifiles = callPackage ../development/ocaml-modules/inifiles { };

jingoo = callPackage ../development/ocaml-modules/jingoo {
batteries = ocaml_batteries;
pcre = ocaml_pcre;
};

Expand Down Expand Up @@ -391,8 +392,6 @@ let
then callPackage ../development/ocaml-modules/num {}
else null;

ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };

comparelib = callPackage ../development/ocaml-modules/comparelib { };

core_extended_p4 = callPackage ../development/ocaml-modules/core_extended { };
Expand Down

0 comments on commit 26798bd

Please sign in to comment.