dosbox: build on darwin

fixes dosbox issue on dariwn
This commit is contained in:
Matthew Bauer 2017-11-13 18:07:57 -06:00
parent bdce9327a1
commit 010475bb8b

View File

@ -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"; name = "dosbox-0.74";
src = fetchurl { 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"; 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"; 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"; patchFlags = "-p0";
@ -22,6 +27,8 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL mesa ]; buildInputs = [ SDL mesa ];
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "dosbox"; name = "dosbox";
exec = "dosbox"; exec = "dosbox";