2016-04-25 09:12:24 +02:00
|
|
|
{ stdenv, fetchurl, SDL, makeDesktopItem, mesa }:
|
2005-12-03 03:32:02 +01:00
|
|
|
|
2009-03-16 13:22:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-05-28 11:35:49 +02:00
|
|
|
name = "dosbox-0.74";
|
2016-02-11 00:25:41 +01:00
|
|
|
|
2005-12-03 03:32:02 +01:00
|
|
|
src = fetchurl {
|
2009-03-16 13:22:47 +01:00
|
|
|
url = "mirror://sourceforge/dosbox/${name}.tar.gz";
|
2010-05-28 11:35:49 +02:00
|
|
|
sha256 = "01cfjc5bs08m4w79nbxyv7rnvzq2yckmgrbq36njn06lw8b4kxqk";
|
2005-12-03 03:32:02 +01:00
|
|
|
};
|
2012-01-23 18:21:37 +01:00
|
|
|
|
|
|
|
patches =
|
|
|
|
[ # Fix building with GCC 4.6.
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-emulation/dosbox/files/dosbox-0.74-gcc46.patch?revision=1.1";
|
|
|
|
sha256 = "03iv1ph7fccfw327ngnhvzwyiix7fsbdb5mmpxivzkidhlrssxq9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = "-p0";
|
2016-02-11 00:25:41 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 00:25:41 +01:00
|
|
|
|
2016-04-25 09:12:24 +02:00
|
|
|
buildInputs = [ SDL mesa ];
|
2016-05-03 00:58:02 +02:00
|
|
|
|
2009-05-14 13:17:41 +02:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "dosbox";
|
|
|
|
exec = "dosbox";
|
|
|
|
comment = "x86 emulator with internal DOS";
|
|
|
|
desktopName = "DOSBox";
|
|
|
|
genericName = "DOS emulator";
|
|
|
|
categories = "Application;Emulator;";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/applications
|
2009-05-14 13:17:41 +02:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
2009-03-16 13:22:47 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.dosbox.com/;
|
|
|
|
description = "A DOS emulator";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-03-16 13:22:47 +01:00
|
|
|
};
|
2005-12-03 03:32:02 +01:00
|
|
|
}
|