mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
dosbox: build on darwin
fixes dosbox issue on dariwn
This commit is contained in:
parent
bdce9327a1
commit
010475bb8b
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue