From d9b9cdd10c451fe00ddd2c415fc0fa3ff278aebd Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 10 Feb 2024 21:35:06 +0000 Subject: [PATCH] pingus: fix `gcc-13` build failure Without the change the build in `master` fails as https://hydra.nixos.org/build/247719962: In file included from /build/pingus-709546d/src/engine/display/font_description.hpp:23, from /build/pingus-709546d/src/engine/display/font_description.cpp:17: /build/pingus-709546d/src/util/pathname.hpp:79:3: error: 'uint64_t' does not name a type 79 | uint64_t mtime() const; | ^~~~~~~~ --- pkgs/games/pingus/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/games/pingus/default.nix b/pkgs/games/pingus/default.nix index fd0ebddfc32f..9dd219500390 100644 --- a/pkgs/games/pingus/default.nix +++ b/pkgs/games/pingus/default.nix @@ -13,6 +13,11 @@ stdenv.mkDerivation rec { fetchSubmodules = true; }; + postPatch = '' + # Fix missing gcc-13 headers + sed -e '1i #include ' -i src/util/pathname.hpp + ''; + meta = { description = "A puzzle game with mechanics similar to Lemmings"; platforms = lib.platforms.linux;