3
0
Fork 0
forked from mirrors/nixpkgs

superTuxKart: fix build with GCC 13

This commit is contained in:
Jan Solanti 2024-01-09 22:57:56 +02:00
parent 5062375b6a
commit 95c05c4102

View file

@ -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