summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-06-02 10:07:03 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2023-06-08 13:45:04 +0200
commit0788043a77782a73781392f0bd9ad26bf64e1fd2 (patch)
treeb15405b3d190aaa2e77c51fa8a4ac8b9803db006
parent62c789ff6f4d03e2f395042a1def8c1454734d9e (diff)
downloadnixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar.gz
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar.bz2
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar.lz
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar.xz
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.tar.zst
nixpkgs-0788043a77782a73781392f0bd9ad26bf64e1fd2.zip
ocamlPackages.twt: disable for OCaml ≥ 5.0
-rw-r--r--pkgs/development/ocaml-modules/twt/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/twt/default.nix b/pkgs/development/ocaml-modules/twt/default.nix
index 46822df31fc..069cacb3407 100644
--- a/pkgs/development/ocaml-modules/twt/default.nix
+++ b/pkgs/development/ocaml-modules/twt/default.nix
@@ -1,5 +1,8 @@
 { lib, stdenv, fetchFromGitHub, ocaml, findlib }:
 
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+  "twt is not available for OCaml ${ocaml.version}"
+
 stdenv.mkDerivation rec {
   pname = "ocaml${ocaml.version}-twt";
   version = "0.94.0";