git.iko.soy/typeable/nixpkgs
on master help sign in
allow eliom with ocaml-4.01
commit7395020b657ccec75881d62d05a8997cadaf3304 authorFlorent Becker <florent.becker@ens-lyon.org> dateTue 31 May 2016, 18:36 (11 years ago) parent71888e7
2 files changed+11−8
pkgs/development/ocaml-modules/eliom/default.nix+10−4 pkgs/top-level/all-packages.nix+1−4
pkgs/development/ocaml-modules/eliom/default.nix+10−4
@@ -3,7 +3,11 @@
33 ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
44 reactivedata, opam, ppx_tools, camlp4}:
55
6−assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
6+let ocamlVersion = (stdenv.lib.getVersion ocaml);
7+ in
8+
9+(
10+assert stdenv.lib.versionAtLeast ocamlVersion "4";
711
812stdenv.mkDerivation rec
913{
@@ -25,9 +29,11 @@ stdenv.mkDerivation rec
2529 calendar cryptokit ocamlnet ocaml_react ocaml_ssl
2630 ocaml_pcre ];
2731
32+ preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") ''
33+ export PPX=false
34+ '';
35+
2836 installPhase =
29− let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
30− in
3137 ''opam-installer --script --prefix=$out ${pname}.install > install.sh
3238 sh install.sh
3339 ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/
@@ -55,4 +61,4 @@ stdenv.mkDerivation rec
5561
5662 maintainers = [ stdenv.lib.maintainers.gal_bolle ];
5763 };
58−}
64+})
pkgs/top-level/all-packages.nix+1−4
@@ -4908,10 +4908,7 @@ in
49084908
49094909 eff = callPackage ../development/interpreters/eff { };
49104910
4911− eliom =
4912− if lib.versionAtLeast ocaml_version "4.02"
4913− then callPackage ../development/ocaml-modules/eliom { }
4914− else null;
4911+ eliom = callPackage ../development/ocaml-modules/eliom { };
49154912
49164913 enumerate = callPackage ../development/ocaml-modules/enumerate { };
49174914