ocamlPackages.ocaml-recovery-parser: use Dune 3

And disable for OCaml ≥ 5.0
This commit is contained in:
Vincent Laporte 2023-01-15 10:02:29 +01:00
parent 97ea0e7236
commit 689c7010de
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, ocaml
, buildDunePackage
, fix
, menhirLib
@ -7,12 +8,15 @@
, gitUpdater
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"ocaml-recovery-parser is not available for OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "ocaml-recovery-parser";
version = "0.2.4";
minimalOCamlVersion = "4.08";
useDune2 = true;
duneVersion = "3";
src = fetchFromGitHub {
owner = "serokell";