summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-11-06 06:10:53 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-11-13 05:06:51 +0100
commit971718f1d9e1534f96a5377840197a2fc9e0adf8 (patch)
tree24d38e2ca5be36b9feea8596cf1d320c806554cf
parentb03530d28701c07e9f543b45384490f8e45f8f30 (diff)
ocamlPackages.gettext-stub: disable for OCaml ≥ 5.0
-rw-r--r--pkgs/development/ocaml-modules/ocaml-gettext/stub.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
index 43bd194b655b..7c197f9e87b0 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
@@ -1,6 +1,9 @@
{ lib, buildDunePackage, ocaml, ocaml_gettext, dune-configurator, ounit }:
-buildDunePackage rec {
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+ "gettext-stub is not available for OCaml ${ocaml.version}"
+
+buildDunePackage {
pname = "gettext-stub";