libfishsound: add debian patches

authored by Ross Nomann and committed by Reno Dakota 765cd09d a5f897d4

+30 -1
+30 -1
pkgs/by-name/li/libfishsound/package.nix
··· 2 lib, 3 stdenv, 4 fetchurl, 5 libvorbis, 6 speex, 7 flac, ··· 17 sha256 = "1iz7mn6hw2wg8ljaw74f4g2zdj68ib88x4vjxxg3gjgc5z75f2rf"; 18 }; 19 20 propagatedBuildInputs = [ 21 libvorbis 22 speex 23 flac 24 ]; 25 26 - nativeBuildInputs = [ pkg-config ]; 27 28 meta = with lib; { 29 homepage = "https://xiph.org/fishsound/";
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + fetchpatch, 6 + autoreconfHook, 7 libvorbis, 8 speex, 9 flac, ··· 19 sha256 = "1iz7mn6hw2wg8ljaw74f4g2zdj68ib88x4vjxxg3gjgc5z75f2rf"; 20 }; 21 22 + patches = 23 + let 24 + fetchDebPatch = 25 + { name, hash }: 26 + fetchpatch { 27 + inherit name hash; 28 + url = "https://salsa.debian.org/multimedia-team/libfishsound/-/raw/f25f31a13dd2ce008614427889b08e6f2222898f/debian/patches/${name}"; 29 + }; 30 + in 31 + map fetchDebPatch [ 32 + { 33 + name = "0001-Patch-configure.ac-to-specify-config-macro-dir.patch"; 34 + hash = "sha256-3cijMhgxqwFisc5nt8826QUwOqPI7H425QkDcjnD4iM="; 35 + } 36 + { 37 + name = "0002-flac-set-vendor_string.length-0.patch"; 38 + hash = "sha256-8195rU9IAhFL3MgB4jLwtJv6BWgz22A38+RmIymIQoo="; 39 + } 40 + { 41 + name = "0003-Fix-incompatible-flac-callback-types.patch"; 42 + hash = "sha256-BxG1hlThzhJ6VeGcsNpDEtVyKSJTLGFKeHFpFoXW54A="; 43 + } 44 + ]; 45 + 46 propagatedBuildInputs = [ 47 libvorbis 48 speex 49 flac 50 ]; 51 52 + nativeBuildInputs = [ 53 + pkg-config 54 + autoreconfHook 55 + ]; 56 57 meta = with lib; { 58 homepage = "https://xiph.org/fishsound/";