R: fix build on darwin

This commit is contained in:
Ryan Omasta
2026-07-11 21:35:15 -06:00
parent cbbdf3d7b1
commit f03ea24eb1

View File

@@ -27,6 +27,7 @@
pkg-config,
bison,
which,
llvmPackages,
jdk,
blas,
lapack,
@@ -68,7 +69,10 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
tzdata
which
];
]
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
buildInputs = [
bzip2
gfortran
@@ -126,6 +130,11 @@ stdenv.mkDerivation (finalAttrs: {
dontDisableStatic = static;
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
preConfigure = ''
configureFlagsArray=(
--disable-lto