diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-05-03 22:08:00 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-05-03 22:08:00 +0200 |
commit | 6dace2206e7134615d9a287c54e3d8062297551d (patch) | |
tree | d09ad07f5f3d6903602767bb25cce4fcdde95249 /pkgs/development/ocaml-modules/ppx_derivers/default.nix | |
parent | ad74ffec153fe172340755f54f889e718949294b (diff) |
ocamlPackages.ppx_derivers: pin Dune to version 1 for OCaml < 4.08
Diffstat (limited to 'pkgs/development/ocaml-modules/ppx_derivers/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/ppx_derivers/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_derivers/default.nix b/pkgs/development/ocaml-modules/ppx_derivers/default.nix index 84dda38846fe5..49217781b8acf 100644 --- a/pkgs/development/ocaml-modules/ppx_derivers/default.nix +++ b/pkgs/development/ocaml-modules/ppx_derivers/default.nix @@ -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"; +}) |