From 459f17a8d5d67871ad3a3646df034e2d1793f664 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 26 Jun 2017 04:08:57 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.uri=5Fp4:=20disable=20for=20OCaml?= =?UTF-8?q?=20=E2=89=A5=204.03?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/uri/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix index ae41c8729607..f08ee7fc2fc1 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