mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
SDL_compat: don't propagate build inputs
This commit is contained in:
parent
abaf2bd382
commit
7aeac03f40
1 changed files with 3 additions and 5 deletions
|
@ -39,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
autoSignDarwinBinariesHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs =
|
||||
buildInputs =
|
||||
[
|
||||
libX11
|
||||
sdl2-compat
|
||||
|
@ -71,14 +71,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
if stdenv.hostPlatform.isDarwin then
|
||||
''
|
||||
install_name_tool ${
|
||||
lib.strings.concatMapStrings (
|
||||
x: " -add_rpath ${lib.makeLibraryPath [ x ]} "
|
||||
) finalAttrs.propagatedBuildInputs
|
||||
lib.strings.concatMapStrings (x: " -add_rpath ${lib.makeLibraryPath [ x ]} ") finalAttrs.buildInputs
|
||||
} "$lib"
|
||||
''
|
||||
else
|
||||
''
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath finalAttrs.propagatedBuildInputs}" "$lib"
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath finalAttrs.buildInputs}" "$lib"
|
||||
''
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue