mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-14 12:48:57 +00:00
R: fix build on darwin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user