ocaml: build defaultentry not bootstrap on 5.2+

Building ocaml fails occasionally on aarch64-darwin. Using the
defaultentry target to build on ocaml 5.2 and greater may rectify this.
This commit is contained in:
Reno Dakota 2024-11-04 19:41:40 -08:00 committed by Vincent Laporte
parent 3f50e73a67
commit 4becb3821e

View File

@ -105,7 +105,9 @@ stdenv.mkDerivation (args // {
# sequential order among them as a single rule.
makefile = ./Makefile.nixpkgs;
buildFlags = if useNativeCompilers
then ["nixpkgs_world_bootstrap_world_opt"]
then [(if lib.versionOlder version "5.2"
then "nixpkgs_world_bootstrap_world_opt"
else "defaultentry")]
else ["nixpkgs_world"];
buildInputs = optional (lib.versionOlder version "4.07") ncurses
++ optionals useX11 [ libX11 xorgproto ];