3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.dune_2: use pkgs.dune_2 for OCaml < 4.07

This commit is contained in:
Vincent Laporte 2020-05-14 16:39:04 +02:00 committed by Vincent Laporte
parent 311e883b23
commit f31adf28b7

View file

@ -217,7 +217,12 @@ let
dune = callPackage ../development/tools/ocaml/dune { };
dune_2 = callPackage ../development/tools/ocaml/dune/2.nix { };
dune_2 =
if lib.versionAtLeast ocaml.version "4.07"
then callPackage ../development/tools/ocaml/dune/2.nix { }
else if lib.versionAtLeast ocaml.version "4.02"
then pkgs.dune_2
else throw "dune_2 is not available for OCaml ${ocaml.version}";
dune-build-info = callPackage ../development/ocaml-modules/dune-build-info { };