From 62e4ece967bbee978a7312ce4ec51d31279dcc76 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 18 Feb 2024 22:40:51 +0000 Subject: [PATCH] goldberg-emu: fix `gcc-13` build failure Without the change build fails on `master` as https://hydra.nixos.org/build/249156752: In file included from /build/source/dll/base.h:61, from /build/source/dll/settings.h:18, from /build/source/dll/settings.cpp:18: /build/source/dll/settings.h:26:10: error: 'string' in namespace 'std' does not name a type 26 | std::string name; | ^~~~~~ --- pkgs/applications/emulators/goldberg-emu/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/emulators/goldberg-emu/default.nix b/pkgs/applications/emulators/goldberg-emu/default.nix index 5ff25efbf151..7e00ad6a5d68 100644 --- a/pkgs/applications/emulators/goldberg-emu/default.nix +++ b/pkgs/applications/emulators/goldberg-emu/default.nix @@ -19,6 +19,11 @@ stdenv.mkDerivation rec { # It attempts to install windows-only libraries which we never build patches = [ ./dont-install-unsupported.patch ]; + postPatch = '' + # Fix gcc-13 build failure due to missing include. + sed -e '1i #include ' -i dll/settings.h + ''; + nativeBuildInputs = [ cmake ]; buildInputs = [ protobuf ];