pingus: fix build with gcc7

+9 -2
+9 -2
pkgs/games/pingus/default.nix
··· 1 - {stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig 2 - , libGLU_combined}: 3 let 4 s = # Generated upstream information 5 rec { ··· 18 src = fetchurl { 19 inherit (s) url sha256; 20 }; 21 makeFlags = '' PREFIX="$(out)" ''; 22 meta = { 23 inherit (s) version;
··· 1 + {stdenv, fetchurl, fetchpatch, scons, SDL, SDL_image, boost, libpng, SDL_mixer 2 + , pkgconfig, libGLU_combined}: 3 let 4 s = # Generated upstream information 5 rec { ··· 18 src = fetchurl { 19 inherit (s) url sha256; 20 }; 21 + patches = [ 22 + # fix build with gcc7 23 + (fetchpatch { 24 + url = https://github.com/Pingus/pingus/commit/df6e2f445d3e2925a94d22faeb17be9444513e92.patch; 25 + sha256 = "0nqyhznnnvpgfa6rfv8rapjfpw99b67n97jfqp9r3hpib1b3ja6p"; 26 + }) 27 + ]; 28 makeFlags = '' PREFIX="$(out)" ''; 29 meta = { 30 inherit (s) version;