Merge pull request #31639 from matthewbauer/dosbox-on-darwin
Dosbox on darwin
This commit is contained in:
commit
881e41f0ac
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, SDL, makeDesktopItem, mesa }:
|
||||
{ stdenv, lib, fetchurl, SDL, makeDesktopItem, mesa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dosbox-0.74";
|
||||
|
||||
src = fetchurl {
|
||||
@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
|
||||
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-emulation/dosbox/files/dosbox-0.74-gcc46.patch?revision=1.1";
|
||||
sha256 = "03iv1ph7fccfw327ngnhvzwyiix7fsbdb5mmpxivzkidhlrssxq9";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://svnweb.freebsd.org/ports/head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp?revision=435580&view=co&pathrev=435580";
|
||||
sha256 = "1mbj5wrn53k0zds2adys34949vzsbfgm0pmsyx14v9j0cxi7drca";
|
||||
name = "patch-src_gui_sdlmain.cpp";
|
||||
})
|
||||
];
|
||||
|
||||
patchFlags = "-p0";
|
||||
@ -22,6 +27,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ SDL mesa ];
|
||||
|
||||
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "dosbox";
|
||||
exec = "dosbox";
|
||||
@ -36,9 +43,11 @@ stdenv.mkDerivation rec {
|
||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
homepage = http://www.dosbox.com/;
|
||||
description = "A DOS emulator";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ matthewbauer ];
|
||||
licenses = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user