diff options
Diffstat (limited to 'pkgs/games/ja2-stracciatella/default.nix')
-rw-r--r-- | pkgs/games/ja2-stracciatella/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/games/ja2-stracciatella/default.nix b/pkgs/games/ja2-stracciatella/default.nix index ea363c969429..6b89a806e26b 100644 --- a/pkgs/games/ja2-stracciatella/default.nix +++ b/pkgs/games/ja2-stracciatella/default.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation { inherit src version; nativeBuildInputs = [ cmake python3 ]; - buildInputs = [ SDL2 fltk rapidjson gtest ] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ]; + buildInputs = [ SDL2 fltk rapidjson gtest ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa ]; patches = [ ./remove-rust-buildstep.patch @@ -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 |