From 41c194565f48e26d3efc6d1fd1857a826253128b Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 7 Jul 2022 21:07:50 +0300 Subject: [PATCH] wireplumber: backport a fix for no sound in VMs --- pkgs/development/libraries/pipewire/wireplumber.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/pipewire/wireplumber.nix b/pkgs/development/libraries/pipewire/wireplumber.nix index 6600e50f25ad..14b75f770a12 100644 --- a/pkgs/development/libraries/pipewire/wireplumber.nix +++ b/pkgs/development/libraries/pipewire/wireplumber.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitLab +, fetchpatch , nix-update-script , # base build deps meson @@ -38,6 +39,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-3NrzOsL0MekxMMXCFubEkazzSWFNsjUsX8n2ECcr7yY="; }; + patches = [ + # fix sound not working in VMs + # FIXME: drop in next release + (fetchpatch { + url = "https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/c16e637c329bc9dda8544b18f5bd47a8d63ee253.patch"; + sha256 = "sha256-xhhAlhOovwIjwAxXxvHRTG4GzpIPYvKQE2F4ZP1Udq8="; + }) + ]; + nativeBuildInputs = [ meson pkg-config