caprice32: Add <string> include

polygon 7b1fad07 90a28c9e

+17
+5
pkgs/misc/emulators/caprice32/default.nix
··· 5 6 pname = "caprice32"; 7 version = "4.6.0"; 8 9 src = fetchFromGitHub { 10 repo = "caprice32"; ··· 15 16 nativeBuildInputs = [ desktop-file-utils pkg-config ]; 17 buildInputs = [ libpng SDL freetype zlib ]; 18 19 makeFlags = [ 20 "APP_PATH=${placeholder "out"}/share/caprice32"
··· 5 6 pname = "caprice32"; 7 version = "4.6.0"; 8 + # NOTE: When bumping version beyond 4.6.0, you likely need to remove 9 + # string.patch below. The fix of this patch has already been 10 + # done upstream but is not yet part of a release 11 12 src = fetchFromGitHub { 13 repo = "caprice32"; ··· 18 19 nativeBuildInputs = [ desktop-file-utils pkg-config ]; 20 buildInputs = [ libpng SDL freetype zlib ]; 21 + 22 + patches = [ ./string.patch ]; 23 24 makeFlags = [ 25 "APP_PATH=${placeholder "out"}/share/caprice32"
+12
pkgs/misc/emulators/caprice32/string.patch
···
··· 1 + diff --git a/src/configuration.h b/src/configuration.h 2 + index 34fd690..97fb0e5 100644 3 + --- a/src/configuration.h 4 + +++ b/src/configuration.h 5 + @@ -2,6 +2,7 @@ 6 + #define CONFIGURATION_H 7 + 8 + #include <map> 9 + +#include <string> 10 + 11 + namespace config 12 + {