2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchsvn, SDL, SDL_net, SDL_sound, libpng, makeDesktopItem, libGLU_combined, autoreconfHook }:
|
2017-07-28 10:20:56 +02:00
|
|
|
|
|
|
|
let revision = "4025";
|
|
|
|
revisionDate = "2017-07-02";
|
|
|
|
revisionSha = "0hbghdlvm6qibp0df35qxq35km4nza3sm301x380ghamxq2vgy6a";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "dosbox-unstable-${revisionDate}";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk";
|
|
|
|
rev = revision;
|
|
|
|
sha256 = revisionSha;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ SDL SDL_net SDL_sound libpng libGLU_combined ];
|
2017-07-28 10:20:56 +02:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "dosbox";
|
|
|
|
exec = "dosbox";
|
|
|
|
comment = "x86 emulator with internal DOS";
|
|
|
|
desktopName = "DOSBox (SVN)";
|
|
|
|
genericName = "DOS emulator";
|
|
|
|
categories = "Application;Emulator;";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.dosbox.com/;
|
|
|
|
description = "A DOS emulator";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ binarin ];
|
2018-08-06 12:45:57 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-07-28 10:20:56 +02:00
|
|
|
};
|
|
|
|
}
|