about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorJan Solanti <jhs@psonet.com>2024-01-09 22:57:56 +0200
committerJan Solanti <jhs@psonet.com>2024-01-09 22:57:56 +0200
commit95c05c41027486403bb6b6a3f61207c2967bca8b (patch)
tree006186b1ba7277ee9a8e83db619ea0d6469b419a /pkgs/games
parent5062375b6a9a4f14a48855ebed48a391bb1557b9 (diff)
superTuxKart: fix build with GCC 13
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/super-tux-kart/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/games/super-tux-kart/default.nix b/pkgs/games/super-tux-kart/default.nix
index d92f01cad37ae..3077d5b9443c1 100644
--- a/pkgs/games/super-tux-kart/default.nix
+++ b/pkgs/games/super-tux-kart/default.nix
@@ -122,6 +122,13 @@ stdenv.mkDerivation rec {
     "-DOpenGL_GL_PREFERENCE=GLVND"
   ];
 
+  CXXFLAGS = [
+    # GCC 13: error: 'snprintf' was not declared in this scope
+    "-include cstdio"
+    # GCC 13: error: 'runtime_error' is not a member of 'std'
+    "-include stdexcept"
+  ];
+
   # Extract binary from built app bundle
   postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
     mkdir $out/bin