diff --git a/pkgs/servers/pulseaudio/default.nix b/pkgs/servers/pulseaudio/default.nix index fa3333433ebb..e548337948ab 100644 --- a/pkgs/servers/pulseaudio/default.nix +++ b/pkgs/servers/pulseaudio/default.nix @@ -95,6 +95,11 @@ stdenv.mkDerivation rec { }) ]; + postPatch = '' + # Fails in LXC containers where not all cores are enabled, where this setaffinity call will return EINVAL + sed -i "/fail_unless(pthread_setaffinity_np/d" src/tests/once-test.c + ''; + outputs = [ "out" "dev"