mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
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:
parent
3f50e73a67
commit
4becb3821e
@ -105,7 +105,9 @@ stdenv.mkDerivation (args // {
|
|||||||
# sequential order among them as a single rule.
|
# sequential order among them as a single rule.
|
||||||
makefile = ./Makefile.nixpkgs;
|
makefile = ./Makefile.nixpkgs;
|
||||||
buildFlags = if useNativeCompilers
|
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"];
|
else ["nixpkgs_world"];
|
||||||
buildInputs = optional (lib.versionOlder version "4.07") ncurses
|
buildInputs = optional (lib.versionOlder version "4.07") ncurses
|
||||||
++ optionals useX11 [ libX11 xorgproto ];
|
++ optionals useX11 [ libX11 xorgproto ];
|
||||||
|
Loading…
Reference in New Issue
Block a user