From 6965f0578e8fe92ae8eabb91fae2469877e13967 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Sat, 2 Nov 2024 00:50:16 +0100 Subject: [PATCH] ja2-stracciatella: fix build with gcc13 --- pkgs/games/ja2-stracciatella/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/games/ja2-stracciatella/default.nix b/pkgs/games/ja2-stracciatella/default.nix index 9ad6e3105406..6b89a806e26b 100644 --- a/pkgs/games/ja2-stracciatella/default.nix +++ b/pkgs/games/ja2-stracciatella/default.nix @@ -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