Unverified Commit b293a401 authored by Vincent Laporte's avatar Vincent Laporte
Browse files

ocamlPackages.facile: pin Dune version

and disable for OCaml ≥ 5.0
parent 6d7dca30
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
{ lib, fetchurl, buildDunePackage, ocaml }:

lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
  "facile is not available for OCaml ≥ 5.0"

buildDunePackage rec {
  pname = "facile";
  version = "1.1.4";
@@ -11,8 +14,8 @@ buildDunePackage rec {

  doCheck = true;

  useDune2 = lib.versionAtLeast ocaml.version "4.12";
  postPatch = lib.optionalString useDune2 "dune upgrade";
  duneVersion = if lib.versionAtLeast ocaml.version "4.12" then "2" else "1";
  postPatch = lib.optionalString (duneVersion != "1") "dune upgrade";

  meta = {
    homepage = "http://opti.recherche.enac.fr/facile/";