From 9ffb287d75181651d96697a6118476b58fb63b61 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 20 Apr 2021 05:33:27 +0200 Subject: [PATCH] ocamlformat: build versions < 0.17 with OCaml 4.10 --- pkgs/development/tools/ocaml/ocamlformat/generic.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/ocaml/ocamlformat/generic.nix b/pkgs/development/tools/ocaml/ocamlformat/generic.nix index 223ac39c6aa..eb38b60f9b1 100644 --- a/pkgs/development/tools/ocaml/ocamlformat/generic.nix +++ b/pkgs/development/tools/ocaml/ocamlformat/generic.nix @@ -25,8 +25,10 @@ let src = }."${version}"; }; ocamlPackages = - if lib.versionAtLeast version "0.14.3" + if lib.versionAtLeast version "0.17.0" then ocaml-ng.ocamlPackages + else if lib.versionAtLeast version "0.14.3" + then ocaml-ng.ocamlPackages_4_10 else ocaml-ng.ocamlPackages_4_07 ; in