From 7824143e5f717002bc0353ca3de7fdf4a0f09ef2 Mon Sep 17 00:00:00 2001 From: ghpzin Date: Mon, 14 Oct 2024 19:36:48 +0300 Subject: [PATCH] dsp: fix build with ffmpeg7 - add patch from upstream commmit fixing ffmpeg7 compatibility: https://github.com/bmc0/dsp/commit/58a9d0c1f99f2d4c7fc51b6dbe563447ec60120f --- pkgs/by-name/ds/dsp/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/ds/dsp/package.nix b/pkgs/by-name/ds/dsp/package.nix index f827e281681b..9e2e815a1760 100644 --- a/pkgs/by-name/ds/dsp/package.nix +++ b/pkgs/by-name/ds/dsp/package.nix @@ -13,6 +13,7 @@ , ladspaH , libtool , libpulseaudio +, fetchpatch }: stdenv.mkDerivation (finalAttrs: { @@ -28,6 +29,15 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ pkg-config ]; + patches = [ + # fix compatibility with ffmpeg7 + # https://github.com/bmc0/dsp/commit/58a9d0c1f99f2d4c7fc51b6dbe563447ec60120f + (fetchpatch { + url = "https://github.com/bmc0/dsp/commit/58a9d0c1f99f2d4c7fc51b6dbe563447ec60120f.patch?full_index=1"; + hash = "sha256-7WgJegDL9sVCRnRwm/f1ZZl2eiuRT5oAQaYoDLjEoqs="; + }) + ]; + buildInputs = [ fftw zita-convolver