2009-05-14 13:17:41 +02:00
|
|
|
{stdenv, fetchurl, SDL, makeDesktopItem}:
|
2005-12-03 03:32:02 +01:00
|
|
|
|
2009-03-16 13:22:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-05-29 14:14:56 +02:00
|
|
|
name = "dosbox-0.73";
|
2009-03-16 13:22:47 +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";
|
2009-05-29 14:14:56 +02:00
|
|
|
sha256 = "b0a94c46164391a9c32d9571e4d0b61ff238908ff0b77e09157c22dc98a93765";
|
2005-12-03 03:32:02 +01:00
|
|
|
};
|
2009-03-16 13:22:47 +01:00
|
|
|
|
2009-05-14 13:17:41 +02:00
|
|
|
buildInputs = [SDL];
|
2009-05-29 14:14:56 +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 = ''
|
|
|
|
ensureDir $out/share/applications
|
|
|
|
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";
|
|
|
|
};
|
2005-12-03 03:32:02 +01:00
|
|
|
}
|