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; | ^~~~~~
This commit is contained in:
parent
82e5bc1a59
commit
62e4ece967
1 changed files with 5 additions and 0 deletions
|
@ -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 <string> include.
|
||||
sed -e '1i #include <string>' -i dll/settings.h
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue