Skip to content

Commit e84b3a0

Browse files
authored
gltron: fix the build against gcc-14 (NixOS#367678)
2 parents 7ecabe0 + 1a13741 commit e84b3a0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkgs/by-name/gl/gltron/package.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ stdenv.mkDerivation rec {
2020
sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0";
2121
};
2222

23-
patches = [ ./gentoo-prototypes.patch ];
23+
patches = [
24+
./gentoo-prototypes.patch
25+
26+
# gcc-14 build fix: https://sourceforge.net/p/gltron/patches/7/
27+
(fetchurl {
28+
name = "gcc-14.patch";
29+
url = "https://sourceforge.net/p/gltron/patches/7/attachment/gcc-14.patch";
30+
hash = "sha256-OJAUAM/OQVwxYnIacBkncNxMLn/HDCoysbi+Txe+DC8=";
31+
})
32+
];
2433

2534
postPatch = ''
2635
# Fix https://sourceforge.net/p/gltron/bugs/15
@@ -41,6 +50,8 @@ stdenv.mkDerivation rec {
4150
SDL_sound
4251
];
4352

53+
enableParallelBuilding = true;
54+
4455
meta = {
4556
homepage = "http://www.gltron.org/";
4657
description = "Game based on the movie Tron";

0 commit comments

Comments
 (0)