From 994a2fe27cdbcb0859919969d30c1f453e143895 Mon Sep 17 00:00:00 2001 From: Nathaniel Glen Date: Mon, 31 Aug 2020 14:37:36 -0400 Subject: [PATCH] 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. --- pkgs/development/libraries/pipewire/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index 8fc3ecb3873..60c08f2906c 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -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;