summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-06-02 10:07:07 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-06-08 11:45:44 +0000
commit69c4c71fc144c6622090b9ec826429dde5ac1ce3 (patch)
treeee3334db456c8b1a028196110dea9c06a18d6cf9
parentocamlPackages.twt: disable for OCaml ≥ 5.0 (diff)
downloadnixpkgs-69c4c71fc144c6622090b9ec826429dde5ac1ce3.tar.gz
ocamlPackages.vlq: disable for OCaml ≥ 5.0
(cherry picked from commit 4dd1c4628979623b73ba513760a86be1b4f2866c)
-rw-r--r--pkgs/development/ocaml-modules/vlq/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/vlq/default.nix b/pkgs/development/ocaml-modules/vlq/default.nix
index 41991cbf7486..a6ba09ebc679 100644
--- a/pkgs/development/ocaml-modules/vlq/default.nix
+++ b/pkgs/development/ocaml-modules/vlq/default.nix
@@ -1,7 +1,10 @@
-{ lib, buildDunePackage, fetchurl
+{ lib, buildDunePackage, fetchurl, ocaml
, dune-configurator
}:
+lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
+ "vlq is not available for OCaml ${ocaml.version}"
+
buildDunePackage rec {
pname = "vlq";
version = "0.2.1";
@@ -11,8 +14,6 @@ buildDunePackage rec {
sha256 = "02wr9ph4q0nxmqgbc67ydf165hmrdv9b655krm2glc3ahb6larxi";
};
- useDune2 = true;
-
buildInputs = [ dune-configurator ];
meta = {