diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-04-21 18:30:54 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2009-04-21 18:30:54 +0000 |
commit | 883eb4371cd6a4dd18a3b733c69bb206f957703c (patch) | |
tree | 691977a602d2eb76283d86056ee032f1c9ba1f14 /pkgs/misc/emulators/dosbox/default.nix | |
parent | 5b9c5c62be7c37cba5103d7b3fc31175214f89f3 (diff) | |
download | nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar.gz nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar.bz2 nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar.lz nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar.xz nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.tar.zst nixlib-883eb4371cd6a4dd18a3b733c69bb206f957703c.zip |
Fixed dosbox expression
svn path=/nixpkgs/branches/stdenv-updates/; revision=15220
Diffstat (limited to 'pkgs/misc/emulators/dosbox/default.nix')
-rw-r--r-- | pkgs/misc/emulators/dosbox/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/dosbox/default.nix b/pkgs/misc/emulators/dosbox/default.nix index 84f59075d73b..2a4c66c43b91 100644 --- a/pkgs/misc/emulators/dosbox/default.nix +++ b/pkgs/misc/emulators/dosbox/default.nix @@ -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/; |