From 2ed626bf0d28df44328c1946cd69eb79a853c6e0 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 31 Oct 2019 00:41:31 +0100 Subject: gnu: pingus: Adjust for GCC 7. Fixes . * gnu/packages/games.scm (pingus)[source](modules, snippet): New fields. --- gnu/packages/games.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 04b06c88ee..a2917a5f23 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1445,7 +1445,16 @@ (define-public pingus (base32 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74")) (patches (search-patches "pingus-boost-headers.patch" - "pingus-sdl-libs-config.patch")))) + "pingus-sdl-libs-config.patch")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "src/pingus/screens/demo_session.cpp" + (("#include ") + ;; std::function moved to with C++ 11. + ;; Remove this for versions newer than 0.7.6. + "#include \n#include ")) + #t)))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config) ("scons-python2" ,scons-python2))) -- cgit v1.2.3