Skip to content

Commit

Permalink
stdenv: set NIX_DONT_SET_RPATH_FOR_TARGET on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode committed Jul 13, 2024
1 parent 9403fdc commit 10c87ee
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pkgs/stdenv/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,9 @@ let
export NIX_NO_SELF_RPATH=1
'' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) ''
export MACOSX_DEPLOYMENT_TARGET=${hostPlatform.darwinMinVersion}
''
# TODO this should be uncommented, but it causes stupid mass rebuilds. I
# 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
# ''
;
'' + lib.optionalString targetPlatform.isDarwin ''
export NIX_DONT_SET_RPATH_FOR_TARGET=1
'';

inherit initialPath shell
defaultNativeBuildInputs defaultBuildInputs;
Expand Down

0 comments on commit 10c87ee

Please sign in to comment.