mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +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
|
autoSignDarwinBinariesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs =
|
buildInputs =
|
||||||
[
|
[
|
||||||
libX11
|
libX11
|
||||||
sdl2-compat
|
sdl2-compat
|
||||||
|
@ -71,14 +71,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
if stdenv.hostPlatform.isDarwin then
|
if stdenv.hostPlatform.isDarwin then
|
||||||
''
|
''
|
||||||
install_name_tool ${
|
install_name_tool ${
|
||||||
lib.strings.concatMapStrings (
|
lib.strings.concatMapStrings (x: " -add_rpath ${lib.makeLibraryPath [ x ]} ") finalAttrs.buildInputs
|
||||||
x: " -add_rpath ${lib.makeLibraryPath [ x ]} "
|
|
||||||
) finalAttrs.propagatedBuildInputs
|
|
||||||
} "$lib"
|
} "$lib"
|
||||||
''
|
''
|
||||||
else
|
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
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue