diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-06-26 04:08:57 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-06-26 04:10:02 +0200 |
commit | 459f17a8d5d67871ad3a3646df034e2d1793f664 (patch) | |
tree | ad90d30d38404a6952a57de4c7b50a08cd75c99c /pkgs | |
parent | 7829eb794f9ec6572217260323db473a685be541 (diff) | |
download | nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar.gz nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar.bz2 nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar.lz nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar.xz nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.tar.zst nixpkgs-459f17a8d5d67871ad3a3646df034e2d1793f664.zip |
ocamlPackages.uri_p4: disable for OCaml ≥ 4.03
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/uri/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix index ae41c872960..f08ee7fc2fc 100644 --- a/pkgs/development/ocaml-modules/uri/default.nix +++ b/pkgs/development/ocaml-modules/uri/default.nix @@ -4,7 +4,9 @@ , sexplib_p4 }: -assert stdenv.lib.versionAtLeast ocaml.version "4"; +if !stdenv.lib.versionAtLeast ocaml.version "4" +|| legacyVersion && stdenv.lib.versionAtLeast ocaml.version "4.03" +then throw "uri${stdenv.lib.optionalString legacyVersion "_p4"} is not available for OCaml ${ocaml.version}" else with if legacyVersion |