18 stdenv.mkDerivation rec {
23 url = "mirror://sourceforge/dosbox/dosbox-${version}.tar.gz";
24 hash = "sha256-wNE91+0u02O2jeYVR1eB6JHNWC6BYrXDZpE3UCIiJgo=";
29 url = "https://github.com/joncampbell123/dosbox-x/commit/006d5727d36d1ec598e387f2f1a3c521e3673dcb.patch";
30 includes = [ "src/gui/render_templates_sai.h" ];
31 hash = "sha256-HSO29/LgZRKQ3HQBA0QF5henG8pCSoe1R2joYNPcUcE=";
46 ] ++ (if stdenv.hostPlatform.isDarwin then [
53 # Tests for SDL_net.h for modem & IPX support, not automatically picked up due to being in SDL subdirectory
54 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL_net}/include/SDL";
56 hardeningDisable = [ "format" ];
58 configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
65 comment = "x86 dos emulator";
66 desktopName = "DOSBox";
67 genericName = "DOS emulator";
68 categories = [ "Emulator" "Game" ];
73 mkdir -p $out/share/icons/hicolor/256x256/apps
74 gm convert src/dosbox.ico $out/share/icons/hicolor/256x256/apps/dosbox.png
77 enableParallelBuilding = true;
80 homepage = "http://www.dosbox.com/";
81 description = "A DOS emulator";
83 DOSBox is an emulator that recreates a MS-DOS compatible environment
84 (complete with Sound, Input, Graphics and even basic networking). This
85 environment is complete enough to run many classic MS-DOS games completely
86 unmodified. In order to utilize all of DOSBox's features you need to first
87 understand some basic concepts about the MS-DOS environment.
89 license = licenses.gpl2Plus;
90 maintainers = with maintainers; [ matthewbauer ];
91 platforms = platforms.unix;
92 mainProgram = "dosbox";