Skip to content

Commit b1a81b8

Browse files
committed
x16: fix build on GCC 14
1 parent 2db882d commit b1a81b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/by-name/x1/x16/package.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch2,
56
SDL2,
67
callPackage,
78
zlib,
@@ -18,6 +19,15 @@ stdenv.mkDerivation (finalAttrs: {
1819
hash = "sha256-E4TosRoORCWLotOIXROP9oqwqo1IRSa6X13GnmuxE9A=";
1920
};
2021

22+
# Fix build on GCC 14
23+
# TODO: Remove for next release as it should already be included in upstream
24+
patches = [
25+
(fetchpatch2 {
26+
url = "https://github.com/X16Community/x16-emulator/commit/3da83c93d46a99635cf73a6f9fdcf1bd4a4ae04f.patch";
27+
hash = "sha256-DZItqq7B1lXZ6VFsQUdQKn0wt1HaX4ymq2pI2DamY3w=";
28+
})
29+
];
30+
2131
postPatch = ''
2232
substituteInPlace Makefile \
2333
--replace-fail '/bin/echo' 'echo'

0 commit comments

Comments
 (0)