Skip to content

Commit

Permalink
libfishsound: add debian patches
Browse files Browse the repository at this point in the history
  • Loading branch information
rossnomann authored and paparodeo committed Jan 3, 2025
1 parent a5f897d commit 765cd09
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion pkgs/by-name/li/libfishsound/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
lib,
stdenv,
fetchurl,
fetchpatch,
autoreconfHook,
libvorbis,
speex,
flac,
Expand All @@ -17,13 +19,40 @@ stdenv.mkDerivation rec {
sha256 = "1iz7mn6hw2wg8ljaw74f4g2zdj68ib88x4vjxxg3gjgc5z75f2rf";
};

patches =
let
fetchDebPatch =
{ name, hash }:
fetchpatch {
inherit name hash;
url = "https://salsa.debian.org/multimedia-team/libfishsound/-/raw/f25f31a13dd2ce008614427889b08e6f2222898f/debian/patches/${name}";
};
in
map fetchDebPatch [
{
name = "0001-Patch-configure.ac-to-specify-config-macro-dir.patch";
hash = "sha256-3cijMhgxqwFisc5nt8826QUwOqPI7H425QkDcjnD4iM=";
}
{
name = "0002-flac-set-vendor_string.length-0.patch";
hash = "sha256-8195rU9IAhFL3MgB4jLwtJv6BWgz22A38+RmIymIQoo=";
}
{
name = "0003-Fix-incompatible-flac-callback-types.patch";
hash = "sha256-BxG1hlThzhJ6VeGcsNpDEtVyKSJTLGFKeHFpFoXW54A=";
}
];

propagatedBuildInputs = [
libvorbis
speex
flac
];

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
autoreconfHook
];

meta = with lib; {
homepage = "https://xiph.org/fishsound/";
Expand Down

0 comments on commit 765cd09

Please sign in to comment.