about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorSporesirius <sporesirius+git+public@pm.me>2023-12-08 21:56:47 +0100
committerSporesirius <sporesirius+git+public@pm.me>2023-12-23 15:12:11 +0100
commit92605d2155a8eda40f781dd65733a09957ea9b69 (patch)
tree05ecc52c6f608eb2c938f45efda998a65b41d062 /pkgs/by-name
parent025a27814833fa8d12a858773c88da9d6b504048 (diff)
alsa-ucm-conf: apply patch to fix SplitPCM: Device argument may not be set
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/al/alsa-ucm-conf/package.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/by-name/al/alsa-ucm-conf/package.nix b/pkgs/by-name/al/alsa-ucm-conf/package.nix
index b7203a7376387..cb3bf00a00380 100644
--- a/pkgs/by-name/al/alsa-ucm-conf/package.nix
+++ b/pkgs/by-name/al/alsa-ucm-conf/package.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl }:
+{ lib, stdenv, fetchurl, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "alsa-ucm-conf";
@@ -9,6 +9,16 @@ stdenv.mkDerivation rec {
     hash = "sha256-nCHj8B/wC6p1jfF+hnzTbiTrtBpr7ElzfpkQXhbyrpc=";
   };
 
+  patches = [
+    (fetchpatch {
+      # ToDo: Remove this patch in the next package upgrade
+      # Fixes SplitPCM to make some audio devices work with alsa-ucm-conf v1.2.10 again
+      name = "alsa-ucm-conf-splitpcm-device-argument-fix.patch";
+      url = "https://github.com/alsa-project/alsa-ucm-conf/commit/b68aa52acdd2763fedad5eec0f435fbf43e5ccc6.patch";
+      hash = "sha256-8WE4+uhi4W7cCSZYmL7uFpcHJ9muX09UkGXyZIpEd9I=";
+    })
+  ];
+
   dontBuild = true;
 
   installPhase = ''