Skip to content

Commit 5244ebe

Browse files
committed
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): MCJack123/sanjuuni#22 (comment) Breakage introduced in: #337855
1 parent 553e373 commit 5244ebe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/sa/sanjuuni/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ stdenv.mkDerivation rec {
3131
opencl-clhpp
3232
];
3333

34+
postPatch = ''
35+
# TODO: Remove when https://github.com/MCJack123/sanjuuni/commit/778644b164c8877e56f9f5512480dde857133815 is released
36+
substituteInPlace configure \
37+
--replace-fail "swr_alloc_set_opts" "swr_alloc_set_opts2"
38+
'';
39+
3440
installPhase = ''
3541
runHook preInstall
3642

0 commit comments

Comments
 (0)