Fixed dosbox expression

svn path=/nixpkgs/branches/stdenv-updates/; revision=15220
This commit is contained in:
Sander van der Burg 2009-04-21 18:30:54 +00:00
parent 5b9c5c62be
commit 883eb4371c
2 changed files with 14 additions and 0 deletions

View file

@ -9,6 +9,19 @@ stdenv.mkDerivation rec {
};
buildInputs = [SDL];
# Add missing includes in order to fix compilation with glibc 2.9
patchPhase = ''
echo "#include <string.h>" > tmp.cpp
for i in src/hardware/gameblaster.cpp src/hardware/tandy_sound.cpp
do
cat tmp.cpp $i > $i.new
mv $i.new $i
done
echo "#include <stdlib.h>" > tmp.cpp
cat tmp.cpp src/shell/shell_cmds.cpp > src/shell/shell_cmds.cpp.new
mv src/shell/shell_cmds.cpp.new src/shell/shell_cmds.cpp
'';
meta = {
homepage = http://www.dosbox.com/;

View file

@ -98,6 +98,7 @@ in {
docbook_xml_dtd_42 = all;
docbook_xml_dtd_43 = all;
docbook_xsl = all;
dosbox = linux;
doxygen = linux;
e2fsprogs = linux;
emacs22 = all;