ocamlPackages.facile: pin Dune version

and disable for OCaml ≥ 5.0
This commit is contained in:
Vincent Laporte 2023-04-20 06:41:24 +02:00
parent 6d7dca30fe
commit b293a401eb
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,5 +1,8 @@
{ lib, fetchurl, buildDunePackage, ocaml }: { lib, fetchurl, buildDunePackage, ocaml }:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"facile is not available for OCaml 5.0"
buildDunePackage rec { buildDunePackage rec {
pname = "facile"; pname = "facile";
version = "1.1.4"; version = "1.1.4";
@ -11,8 +14,8 @@ buildDunePackage rec {
doCheck = true; doCheck = true;
useDune2 = lib.versionAtLeast ocaml.version "4.12"; duneVersion = if lib.versionAtLeast ocaml.version "4.12" then "2" else "1";
postPatch = lib.optionalString useDune2 "dune upgrade"; postPatch = lib.optionalString (duneVersion != "1") "dune upgrade";
meta = { meta = {
homepage = "http://opti.recherche.enac.fr/facile/"; homepage = "http://opti.recherche.enac.fr/facile/";