From 2dfeb6fc53788507c10c0738a85676d80ca6c970 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Fri, 9 Mar 2018 12:50:13 +0000 Subject: [PATCH] pingus: fix build with gcc7 --- pkgs/games/pingus/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/games/pingus/default.nix b/pkgs/games/pingus/default.nix index 68257fc9e9e..e8bac9571f8 100644 --- a/pkgs/games/pingus/default.nix +++ b/pkgs/games/pingus/default.nix @@ -1,5 +1,5 @@ -{stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig -, libGLU_combined}: +{stdenv, fetchurl, fetchpatch, scons, SDL, SDL_image, boost, libpng, SDL_mixer +, pkgconfig, libGLU_combined}: let s = # Generated upstream information rec { @@ -18,6 +18,13 @@ stdenv.mkDerivation rec { src = fetchurl { inherit (s) url sha256; }; + patches = [ + # fix build with gcc7 + (fetchpatch { + url = https://github.com/Pingus/pingus/commit/df6e2f445d3e2925a94d22faeb17be9444513e92.patch; + sha256 = "0nqyhznnnvpgfa6rfv8rapjfpw99b67n97jfqp9r3hpib1b3ja6p"; + }) + ]; makeFlags = '' PREFIX="$(out)" ''; meta = { inherit (s) version;