summary refs log tree commit diff
path: root/pkgs/misc/emulators/dosbox/unstable.nix
blob: aecfd7698f07da5ee612d7880b1cc8cd94915bbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, fetchsvn, SDL, SDL_net, SDL_sound, libpng, makeDesktopItem, libGLU_combined, autoreconfHook }:

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" ];

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ SDL SDL_net SDL_sound libpng libGLU_combined ];

  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 ];
  };
}