alsaLib: add upstream pcm interval patch

fixes audio for Audacious, Old School Runescape (yet to be packaged),
and a few other packages, see the following issues

https://bugs.archlinux.org/task/60591?project=1&string=alsa-lib

https://bugzilla.redhat.com/show_bug.cgi?id=1640602

http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=b420056604f06117c967b65d43d01536c5ffcbc9
This commit is contained in:
Cray Elliott 2019-01-06 11:29:03 -08:00
parent 237deba4e7
commit 40ce44f675

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "alsa-lib-1.1.7";
@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
patches = [
./alsa-plugin-conf-multilib.patch
(fetchpatch { # pcm interval fix needed for some programs with broken audio, remove when bumping version
name = "pcm-interval-fix.patch";
url = "http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff_plain;h=b420056604f06117c967b65d43d01536c5ffcbc9";
sha256 = "1vjfslzsypd6w15zvvrpdk825hm5j0gz16gw7kj290pkbsdgd435";
})
];
# Fix pcm.h file in order to prevent some compilation bugs