pipewire: remove direct dependency on PulseAudio

Since PulseAudio is required as a build input, the libraries mistakenly
reference the original libpulse.so rather than the custom one.
This commit is contained in:
Nathaniel Glen 2020-08-31 14:37:36 -04:00
parent 3377257d0b
commit 994a2fe27c

View File

@ -112,6 +112,14 @@ stdenv.mkDerivation rec {
doCheck = true;
preFixup = ''
# The rpaths mistakenly points to libpulseaudio instead
for file in "$pulse"/lib/*.so; do
oldrpath="$(patchelf --print-rpath "$file")"
patchelf --set-rpath "$pulse/lib:$oldrpath" "$file"
done
'';
passthru.tests = {
installedTests = nixosTests.installed-tests.pipewire;