diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-08-21 13:15:58 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-08-29 12:49:36 +0000 |
commit | 15a568cfe67abf19f2443163ef50bdf38f70937b (patch) | |
tree | a462ca05b4f9d6bd7b980e950651b9fe53b2ae4e /pkgs/development/ocaml-modules | |
parent | 6d38ada0ba0831f1d3aba5354ad9df15ffd22296 (diff) | |
download | nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar.gz nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar.bz2 nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar.lz nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar.xz nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.tar.zst nixpkgs-15a568cfe67abf19f2443163ef50bdf38f70937b.zip |
ocamlPackages.bin_prot_p4: disable for OCaml ≥ 4.06
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/bin_prot/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/bin_prot/default.nix b/pkgs/development/ocaml-modules/bin_prot/default.nix index 1acb17a8f7a..bc075295cf3 100644 --- a/pkgs/development/ocaml-modules/bin_prot/default.nix +++ b/pkgs/development/ocaml-modules/bin_prot/default.nix @@ -1,4 +1,8 @@ -{stdenv, buildOcaml, fetchurl, type_conv}: +{ stdenv, buildOcaml, fetchurl, ocaml, type_conv }: + +if stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}" +else buildOcaml rec { name = "bin_prot"; |