ocamlformat: build legacy versions with OCaml 4.07

This commit is contained in:
Vincent Laporte 2020-12-08 21:50:10 +01:00 committed by Vincent Laporte
parent 1dc15448b4
commit c2e90c4433

View file

@ -1,4 +1,4 @@
{ lib, fetchurl, fetchzip, ocamlPackages
{ lib, fetchurl, fetchzip, ocaml-ng
, version
, tarballName ? "ocamlformat-${version}.tbz",
}:
@ -22,6 +22,12 @@ let src =
}
; in
let ocamlPackages =
if lib.versionAtLeast version "0.14.3"
then ocaml-ng.ocamlPackages
else ocaml-ng.ocamlPackages_4_07
; in
with ocamlPackages;
buildDunePackage rec {