about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-12-29 06:18:28 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-01-05 06:31:54 +0100
commitb4b8b7b0d763b481273a3e94f60dbea427d89d25 (patch)
treeebfca819a85697098953104758d09d6614fc51d8
parent61c48e5ed13aabcffda52426a7844588e87a0e82 (diff)
ocamlPackages.xml-light: disable for OCaml ≥ 5.0
-rw-r--r--pkgs/development/ocaml-modules/xml-light/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/xml-light/default.nix b/pkgs/development/ocaml-modules/xml-light/default.nix
index 010d7f8e1dbf6..f91eb0b5b5cd0 100644
--- a/pkgs/development/ocaml-modules/xml-light/default.nix
+++ b/pkgs/development/ocaml-modules/xml-light/default.nix
@@ -1,5 +1,8 @@
 { stdenv, lib, fetchFromGitHub, ocaml, findlib, gitUpdater }:
 
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+  "xml-light is not available for OCaml ${ocaml.version}"
+
 stdenv.mkDerivation rec {
   pname = "ocaml${ocaml.version}-xml-light";
   version = "2.4";