ocamlPackages.re: pin Dune to version 1 for OCaml < 4.08

This commit is contained in:
Vincent Laporte 2023-05-03 22:08:14 +02:00
parent 8373826ef2
commit 400e6f08b6
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -13,14 +13,12 @@ let version_sha = if lib.versionAtLeast ocaml.version "4.08"
};
in
buildDunePackage rec {
buildDunePackage (rec {
pname = "re";
version = version_sha.version;
minimalOCamlVersion = "4.02";
useDune2 = lib.versionAtLeast ocaml.version "4.08";
src = fetchurl {
url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
sha256 = version_sha.sha256;
@ -36,4 +34,6 @@ buildDunePackage rec {
license = lib.licenses.lgpl2;
maintainers = with lib.maintainers; [ vbgl ];
};
}
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
duneVersion = "1";
})