1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/misc/emulators/dosbox/unstable.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchurl, fetchsvn, SDL, SDL_net, SDL_sound, libpng, makeDesktopItem, mesa, 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 mesa ];
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 ];
};
}