mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
ocamlformat: build legacy versions with OCaml 4.07
This commit is contained in:
parent
1dc15448b4
commit
c2e90c4433
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user