arcan: fix build for ffmpeg 8

This commit is contained in:
aware70
2025-11-15 10:32:34 -06:00
parent a941e36307
commit ba29ac05bb
+12
View File
@@ -4,6 +4,7 @@
callPackage,
cmake,
espeak-ng,
fetchpatch2,
ffmpeg,
file,
freetype,
@@ -163,6 +164,17 @@ stdenv.mkDerivation (finalAttrs: {
popd
'';
patches = [
# Upstream patch to support ffmpeg 8
(fetchpatch2 {
name = "0001-build-fix-build-with-latest-ffmpeg.patch";
url = "https://chiselapp.com/user/letoram/repository/arcan/vpatch?from=cc6f24de2134282a&to=25bbde5eec7033d3";
hash = "sha256-i8d/X/xmEGWpO9fG6BerW//JnosPwDolXvMFsuv39IM=";
stripLen = 1;
extraPrefix = "src/";
})
];
postPatch = ''
substituteInPlace ./src/platform/posix/paths.c \
--replace-fail "/usr/bin" "$out/bin" \