2022-02-01 00:37:28 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-07-03 05:20:52 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, SDL_compat
|
2022-02-01 00:37:28 +00:00
|
|
|
, SDL_net
|
|
|
|
, SDL_sound
|
|
|
|
, copyDesktopItems
|
|
|
|
, graphicsmagick
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libpng
|
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
2005-12-03 02:32:02 +00:00
|
|
|
|
2017-11-14 00:07:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:00:21 +00:00
|
|
|
pname = "dosbox";
|
|
|
|
version = "0.74-3";
|
2016-02-10 23:25:41 +00:00
|
|
|
|
2005-12-03 02:32:02 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 21:00:21 +00:00
|
|
|
url = "mirror://sourceforge/dosbox/dosbox-${version}.tar.gz";
|
2022-02-01 00:37:28 +00:00
|
|
|
hash = "sha256-wNE91+0u02O2jeYVR1eB6JHNWC6BYrXDZpE3UCIiJgo=";
|
2005-12-03 02:32:02 +00:00
|
|
|
};
|
2012-01-23 17:21:37 +00:00
|
|
|
|
2022-02-01 00:37:28 +00:00
|
|
|
nativeBuildInputs = [
|
2022-07-03 05:20:52 +00:00
|
|
|
autoreconfHook
|
2022-02-01 00:37:28 +00:00
|
|
|
copyDesktopItems
|
|
|
|
graphicsmagick
|
|
|
|
];
|
2016-02-10 23:25:41 +00:00
|
|
|
|
2022-02-01 00:37:28 +00:00
|
|
|
buildInputs = [
|
2022-07-03 05:20:52 +00:00
|
|
|
SDL_compat
|
2022-02-01 00:37:28 +00:00
|
|
|
SDL_net
|
|
|
|
SDL_sound
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libpng
|
|
|
|
];
|
2016-05-02 22:58:02 +00:00
|
|
|
|
2022-02-01 00:37:28 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2019-04-21 12:04:10 +00:00
|
|
|
|
2017-11-14 00:07:57 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
|
2022-02-01 00:37:28 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "dosbox";
|
|
|
|
exec = "dosbox";
|
|
|
|
icon = "dosbox";
|
|
|
|
comment = "x86 dos emulator";
|
|
|
|
desktopName = "DOSBox";
|
|
|
|
genericName = "DOS emulator";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Emulator" "Game" ];
|
2022-02-01 00:37:28 +00:00
|
|
|
})
|
|
|
|
];
|
2009-05-14 11:17:41 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2019-04-21 12:04:10 +00:00
|
|
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
|
|
gm convert src/dosbox.ico $out/share/icons/hicolor/256x256/apps/dosbox.png
|
2009-05-14 11:17:41 +00:00
|
|
|
'';
|
2009-03-16 12:22:47 +00:00
|
|
|
|
2018-11-11 02:37:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-14 00:08:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.dosbox.com/";
|
2009-03-16 12:22:47 +00:00
|
|
|
description = "A DOS emulator";
|
2022-02-01 00:37:28 +00:00
|
|
|
longDescription = ''
|
|
|
|
DOSBox is an emulator that recreates a MS-DOS compatible environment
|
|
|
|
(complete with Sound, Input, Graphics and even basic networking). This
|
|
|
|
environment is complete enough to run many classic MS-DOS games completely
|
|
|
|
unmodified. In order to utilize all of DOSBox's features you need to first
|
|
|
|
understand some basic concepts about the MS-DOS environment.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
2017-11-14 00:08:19 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2022-02-01 00:37:28 +00:00
|
|
|
platforms = platforms.unix;
|
2009-03-16 12:22:47 +00:00
|
|
|
};
|
2005-12-03 02:32:02 +00:00
|
|
|
}
|