1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

ja2-stracciatella: fix build with gcc13 (#353028)

This commit is contained in:
Sefa Eyeoglu 2024-11-02 11:50:26 +01:00 committed by GitHub
commit c9b44ac6df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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