shairplay: fix darwin build

/cc ZHF #36454

(cherry picked from commit 3ca8b20328)
This commit is contained in:
Daiderd Jordan
2018-03-25 15:33:36 +02:00
parent 642a86ba84
commit 12deb60a67

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