caprice32: Add <string> include
This commit is contained in:
parent
90a28c9e1e
commit
7b1fad07a5
2 changed files with 17 additions and 0 deletions
|
@ -5,6 +5,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
pname = "caprice32";
|
pname = "caprice32";
|
||||||
version = "4.6.0";
|
version = "4.6.0";
|
||||||
|
# NOTE: When bumping version beyond 4.6.0, you likely need to remove
|
||||||
|
# string.patch below. The fix of this patch has already been
|
||||||
|
# done upstream but is not yet part of a release
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = "caprice32";
|
repo = "caprice32";
|
||||||
|
@ -16,6 +19,8 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ desktop-file-utils pkg-config ];
|
nativeBuildInputs = [ desktop-file-utils pkg-config ];
|
||||||
buildInputs = [ libpng SDL freetype zlib ];
|
buildInputs = [ libpng SDL freetype zlib ];
|
||||||
|
|
||||||
|
patches = [ ./string.patch ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"APP_PATH=${placeholder "out"}/share/caprice32"
|
"APP_PATH=${placeholder "out"}/share/caprice32"
|
||||||
"RELEASE=1"
|
"RELEASE=1"
|
||||||
|
|
12
pkgs/misc/emulators/caprice32/string.patch
Normal file
12
pkgs/misc/emulators/caprice32/string.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/src/configuration.h b/src/configuration.h
|
||||||
|
index 34fd690..97fb0e5 100644
|
||||||
|
--- a/src/configuration.h
|
||||||
|
+++ b/src/configuration.h
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
#define CONFIGURATION_H
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
+#include <string>
|
||||||
|
|
||||||
|
namespace config
|
||||||
|
{
|
Loading…
Reference in a new issue