diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-03 22:10:07 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-03 23:59:49 +0200 |
commit | ba757e6a7661ba6286fe5a1bbd05918dde625994 (patch) | |
tree | 7d46710cd345f2d9ae5e295cef5e9f3e65b19e83 /pkgs/development/ocaml-modules | |
parent | 2e2769f96c4dd3f32eb2f21dafbfc096cbcb5c40 (diff) | |
download | nixpkgs-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.nix | 6 |
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"; |