Unverified Commit e84b3a09 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

gltron: fix the build against gcc-14 (#367678)

parents 7ecabe01 1a13741c
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -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
@@ -41,6 +50,8 @@ stdenv.mkDerivation rec {
    SDL_sound
  ];

  enableParallelBuilding = true;

  meta = {
    homepage = "http://www.gltron.org/";
    description = "Game based on the movie Tron";