From 5244ebe6c86c8afd42abc9a3c0a4e09fadb75e4c Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Wed, 6 Nov 2024 21:40:55 +0000 Subject: [PATCH] sanjuuni: fix build with FFmpeg 7 Sanjuuni fails with FFmpeg 7: ``` configure: error: Could not find libswresample library. ``` (per https://hydra.nixos.org/build/274775547) libswresample is part of FFmpeg. Upstream recommends this fix (we apply a similar one): https://github.com/MCJack123/sanjuuni/issues/22#issuecomment-2198454686 Breakage introduced in: https://github.com/NixOS/nixpkgs/pull/337855 --- pkgs/by-name/sa/sanjuuni/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/sa/sanjuuni/package.nix b/pkgs/by-name/sa/sanjuuni/package.nix index f8577d3b8a15..71d96226cf07 100644 --- a/pkgs/by-name/sa/sanjuuni/package.nix +++ b/pkgs/by-name/sa/sanjuuni/package.nix @@ -31,6 +31,12 @@ stdenv.mkDerivation rec { opencl-clhpp ]; + postPatch = '' + # TODO: Remove when https://github.com/MCJack123/sanjuuni/commit/778644b164c8877e56f9f5512480dde857133815 is released + substituteInPlace configure \ + --replace-fail "swr_alloc_set_opts" "swr_alloc_set_opts2" + ''; + installPhase = '' runHook preInstall