diff --git a/pkgs/by-name/gl/gltron/package.nix b/pkgs/by-name/gl/gltron/package.nix index c09c8d7e460c..39ecaceb7c9e 100644 --- a/pkgs/by-name/gl/gltron/package.nix +++ b/pkgs/by-name/gl/gltron/package.nix @@ -20,7 +20,16 @@ stdenv.mkDerivation rec { sha256 = "e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0"; }; - patches = [ ./gentoo-prototypes.patch ]; + patches = [ + ./gentoo-prototypes.patch + + # gcc-14 build fix: https://sourceforge.net/p/gltron/patches/7/ + (fetchurl { + name = "gcc-14.patch"; + url = "https://sourceforge.net/p/gltron/patches/7/attachment/gcc-14.patch"; + hash = "sha256-OJAUAM/OQVwxYnIacBkncNxMLn/HDCoysbi+Txe+DC8="; + }) + ]; postPatch = '' # Fix https://sourceforge.net/p/gltron/bugs/15