@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, fetchsvn, SDL, SDL_net, SDL_sound, libpng, makeDesktopItem, mesa, autoreconfHook }:
2+
3+let revision = "4025";
4+ revisionDate = "2017-07-02";
5+ revisionSha = "0hbghdlvm6qibp0df35qxq35km4nza3sm301x380ghamxq2vgy6a";
6+in stdenv.mkDerivation rec {
7+ name = "dosbox-unstable-${revisionDate}";
8+
9+ src = fetchsvn {
10+ url = "https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk";
11+ rev = revision;
12+ sha256 = revisionSha;
13+ };
14+
15+ hardeningDisable = [ "format" ];
16+
17+ buildInputs = [ SDL SDL_net SDL_sound libpng mesa autoreconfHook ];
18+
19+ desktopItem = makeDesktopItem {
20+ name = "dosbox";
21+ exec = "dosbox";
22+ comment = "x86 emulator with internal DOS";
23+ desktopName = "DOSBox (SVN)";
24+ genericName = "DOS emulator";
25+ categories = "Application;Emulator;";
26+ };
27+
28+ postInstall = ''
29+ mkdir -p $out/share/applications
30+ cp ${desktopItem}/share/applications/* $out/share/applications
31+ '';
32+
33+ meta = {
34+ homepage = http://www.dosbox.com/;
35+ description = "A DOS emulator";
36+ platforms = stdenv.lib.platforms.unix;
37+ maintainers = with stdenv.lib.maintainers; [ binarin ];
38+ };
39+}