stdenv: set NIX_DONT_SET_RPATH_FOR_TARGET on Darwin
This commit is contained in:
parent
9403fdc4a6
commit
10c87ee2c7
@ -114,14 +114,9 @@ let
|
|||||||
export NIX_NO_SELF_RPATH=1
|
export NIX_NO_SELF_RPATH=1
|
||||||
'' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) ''
|
'' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) ''
|
||||||
export MACOSX_DEPLOYMENT_TARGET=${hostPlatform.darwinMinVersion}
|
export MACOSX_DEPLOYMENT_TARGET=${hostPlatform.darwinMinVersion}
|
||||||
''
|
'' + lib.optionalString targetPlatform.isDarwin ''
|
||||||
# TODO this should be uncommented, but it causes stupid mass rebuilds. I
|
export NIX_DONT_SET_RPATH_FOR_TARGET=1
|
||||||
# think the best solution would just be to fixup linux RPATHs so we don't
|
'';
|
||||||
# need to set `-rpath` anywhere.
|
|
||||||
# + lib.optionalString targetPlatform.isDarwin ''
|
|
||||||
# export NIX_DONT_SET_RPATH_FOR_TARGET=1
|
|
||||||
# ''
|
|
||||||
;
|
|
||||||
|
|
||||||
inherit initialPath shell
|
inherit initialPath shell
|
||||||
defaultNativeBuildInputs defaultBuildInputs;
|
defaultNativeBuildInputs defaultBuildInputs;
|
||||||
|
Loading…
Reference in New Issue
Block a user