summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-07-03 22:10:07 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-07-03 23:59:49 +0200
commitba757e6a7661ba6286fe5a1bbd05918dde625994 (patch)
tree7d46710cd345f2d9ae5e295cef5e9f3e65b19e83 /pkgs/development/ocaml-modules
parent2e2769f96c4dd3f32eb2f21dafbfc096cbcb5c40 (diff)
downloadnixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar.gz
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar.bz2
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar.lz
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar.xz
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.tar.zst
nixpkgs-ba757e6a7661ba6286fe5a1bbd05918dde625994.zip
ocamlPackages.pgocaml: requires OCaml ≥ 4.00
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/pgocaml/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/pgocaml/default.nix b/pkgs/development/ocaml-modules/pgocaml/default.nix
index a8b3ed15862..f4d1ef829bb 100644
--- a/pkgs/development/ocaml-modules/pgocaml/default.nix
+++ b/pkgs/development/ocaml-modules/pgocaml/default.nix
@@ -1,4 +1,8 @@
-{ stdenv, fetchurl, buildOcaml, calendar, csv, re }:
+{ stdenv, fetchurl, buildOcaml, ocaml, calendar, csv, re }:
+
+if !stdenv.lib.versionAtLeast ocaml.version "4"
+then throw "pgocaml is not available for OCaml ${ocaml.version}"
+else
 
 buildOcaml {
   name = "pgocaml";