mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
Upgraded DOSBox to 0.73 and removed glibc fixes which are obsolete now
svn path=/nixpkgs/trunk/; revision=15786
This commit is contained in:
parent
a39c2a0e88
commit
ec871e6400
@ -1,28 +1,15 @@
|
||||
{stdenv, fetchurl, SDL, makeDesktopItem}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dosbox-0.72";
|
||||
name = "dosbox-0.73";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/dosbox/${name}.tar.gz";
|
||||
sha256 = "0ydck7jgvdwnpxakg2y83dmk2dnwx146cgidbmdn7h75y7cxfiqp";
|
||||
sha256 = "b0a94c46164391a9c32d9571e4d0b61ff238908ff0b77e09157c22dc98a93765";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "dosbox";
|
||||
exec = "dosbox";
|
||||
|
Loading…
Reference in New Issue
Block a user