diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-06-10 22:23:33 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-07-02 21:34:33 +0000 |
commit | 8d5570a04163549bc266f58d62d612bd7f7c8b8b (patch) | |
tree | 758a5a93decf11275a117405abb758b10e48b78e /pkgs/development/libraries/SDL2 | |
parent | d1994ebd8acd3e9d81cd28f691417e7d872309a0 (diff) |
SDL2: limit postFixup to the platforms supported by patchelf
This prevents future rebuilds on Darwin if this Linux-only postFixup changes.
Diffstat (limited to 'pkgs/development/libraries/SDL2')
-rw-r--r-- | pkgs/development/libraries/SDL2/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 5e01a83b7c0ce..01fdc2a087ef8 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -78,7 +78,7 @@ stdenv.mkDerivation rec { # You can grep SDL sources with `grep -rE 'SDL_(NAME|.*_SYM)'` to # confirm that they actually use most of the `propagatedBuildInputs` # from above in this way. This is pretty weird. - postFixup = '' + postFixup = optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so") '' for lib in $out/lib/*.so* ; do if [[ -L "$lib" ]]; then patchelf --set-rpath "$(patchelf --print-rpath $lib):${lib.makeLibraryPath propagatedBuildInputs}" "$lib" |