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

This commit is contained in:
Vincent Laporte 2023-05-03 22:08:00 +02:00
parent ad74ffec15
commit 6dace2206e
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,12 +1,10 @@
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:
buildDunePackage rec {
buildDunePackage (rec {
pname = "ppx_derivers";
version = "1.2.1";
useDune2 = lib.versionAtLeast ocaml.version "4.08";
minimumOCamlVersion = "4.02";
minimalOCamlVersion = "4.02";
src = fetchFromGitHub {
owner = "diml";
@ -21,4 +19,6 @@ buildDunePackage rec {
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
duneVersion = "1";
})