zxtune: unbreak build

fixes https://hydra.nixos.org/build/317966891
This commit is contained in:
Peder Bergebakken Sundt
2026-03-18 01:14:21 +01:00
parent 2c5097ee3c
commit 3981d04f63
+17
View File
@@ -2,6 +2,8 @@
lib,
stdenv,
fetchFromBitbucket,
fetchpatch2,
dos2unix,
nix-update-script,
boost,
zlib,
@@ -77,7 +79,22 @@ stdenv.mkDerivation rec {
buildInputs = staticBuildInputs ++ dlopenBuildInputs;
prePatch = ''
# update-vgm.patch : Hunk #1 FAILED at 18 (different line endings)
find 3rdparty/vgm/ -type f -exec ${dos2unix}/bin/dos2unix {} \;
'';
patches = [
# fix https://hydra.nixos.org/build/317966891
(fetchpatch2 {
name = "xmp-fix-for-gcc-15.patch";
url = "https://github.com/vitamin-caig/zxtune/commit/7f853a38924f78a25b86ac674b41e2f0fd2524a5.patch?full_index=1";
hash = "sha256-F6gD+w4lFymSRHXgDngYX/dZI26f7onOmYFlHkPKms8=";
})
(fetchpatch2 {
name = "update-vgm.patch";
url = "https://github.com/vitamin-caig/zxtune/commit/31e3ff7a8d13b72e6f72caecd15ae87cefca0465.patch?full_index=1";
hash = "sha256-uEa2LY/r/jVWHHEpFtsQba66YdIjA82fDlm+StKp/EI=";
})
./disable_updates.patch
];