summary refs log tree commit diff
path: root/pkgs/top-level/ocaml-packages.nix
diff options
context:
space:
mode:
authorvbgl <vbgl@users.noreply.github.com>2017-02-19 15:54:54 +0100
committerGitHub <noreply@github.com>2017-02-19 15:54:54 +0100
commitd31577cfd3fb6219f3713d2537fdaa49b70165bc (patch)
tree196ca1fe5d4e69c9c15078fa18255eee6fcec15b /pkgs/top-level/ocaml-packages.nix
parente5e1bdca538cb2b8c0e1b184b4acb33649ad3270 (diff)
parent4c5f083d7016c737d321bbe8ac65adf73cc125ee (diff)
downloadnixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar.gz
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar.bz2
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar.lz
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar.xz
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.tar.zst
nixpkgs-d31577cfd3fb6219f3713d2537fdaa49b70165bc.zip
Merge pull request #22871 from FlorentBecker/default_ocaml_402
Default ocaml 402
Diffstat (limited to 'pkgs/top-level/ocaml-packages.nix')
-rw-r--r--pkgs/top-level/ocaml-packages.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 2dd913864a4..bd902396ba1 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -53,13 +53,10 @@ let
 
     bolt = callPackage ../development/ocaml-modules/bolt { };
 
-    bitstring_2_0_4 = callPackage ../development/ocaml-modules/bitstring/2.0.4.nix { };
-    bitstring_git   = callPackage ../development/ocaml-modules/bitstring { };
-
     bitstring =
       if lib.versionOlder "4.02" ocaml.version
-      then bitstring_git
-      else bitstring_2_0_4;
+      then callPackage ../development/ocaml-modules/bitstring { }
+      else callPackage ../development/ocaml-modules/bitstring/2.0.4.nix { };
 
     camlidl = callPackage ../development/tools/ocaml/camlidl { };
 
@@ -99,7 +96,10 @@ let
     camomile_0_8_2 = callPackage ../development/ocaml-modules/camomile/0.8.2.nix { };
     camomile = callPackage ../development/ocaml-modules/camomile { };
 
-    camlimages_4_0 = callPackage ../development/ocaml-modules/camlimages/4.0.nix {
+    camlimages_4_0 =
+      if lib.versionOlder "4.02" ocaml.version
+      then null
+      else callPackage ../development/ocaml-modules/camlimages/4.0.nix {
       libpng = pkgs.libpng12;
       giflib = pkgs.giflib_4_1;
     };
@@ -392,7 +392,10 @@ let
 
     sequence = callPackage ../development/ocaml-modules/sequence { };
 
-    spacetime_lib = callPackage ../development/ocaml-modules/spacetime_lib { };
+    spacetime_lib = if lib.versionOlder "4.04" ocaml.version then
+    callPackage ../development/tools/ocaml/ocamlbuild { }
+    else
+    null;
 
     sqlexpr = callPackage ../development/ocaml-modules/sqlexpr { };
 
@@ -700,7 +703,6 @@ let
 
     google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse { };
 
-    llpp = callPackage ../applications/misc/llpp { };
 
     monotoneViz = callPackage ../applications/version-management/monotone-viz {
       inherit (pkgs.gnome2) libgnomecanvas glib;
@@ -724,9 +726,6 @@ let
       camlp5 = camlp5_transitional;
     };
 
-    prooftree = callPackage ../applications/science/logic/prooftree {
-      camlp5 = camlp5_transitional;
-    };
   };
     in lib.fix' (lib.extends overrides packageSet);
 in rec
@@ -754,5 +753,5 @@ in rec
 
   ocamlPackages_latest = ocamlPackages_4_04;
 
-  ocamlPackages = ocamlPackages_4_01_0;
+  ocamlPackages = ocamlPackages_4_02;
 }