Skip to content

Commit

Permalink
ja2-stracciatella: fix build with gcc13
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Nov 1, 2024
1 parent 5b13e7d commit 6965f05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/games/ja2-stracciatella/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ stdenv.mkDerivation {
cmakeFlagsArray+=("-DLOCAL_RAPIDJSON_LIB=OFF" "-DLOCAL_GTEST_LIB=OFF" "-DEXTRA_DATA_DIR=$out/share/ja2")
'';

# error: 'uint64_t' does not name a type
# gcc13 and above don't automatically include cstdint
env.CXXFLAGS = "-include cstdint";

doInstallCheck = true;
installCheckPhase = ''
HOME=/tmp $out/bin/ja2 -unittests
Expand Down

0 comments on commit 6965f05

Please sign in to comment.