shairplay: fix darwin build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan 2018-03-25 15:33:36 +02:00
parent 82b41525c0
commit 3ca8b20328
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# the build will fail without complaining about a reference to /tmp
preFixup = ''
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
patchelf \
--set-rpath "${stdenv.lib.makeLibraryPath buildInputs}:$out/lib" \
$out/bin/shairplay