nixpkgs/pkgs/applications/emulators/dosbox/default.nix

76 lines
1.7 KiB
Nix
Raw Normal View History

2022-02-01 03:37:28 +03:00
{ lib
, stdenv
, fetchurl
, SDL
, SDL_net
, SDL_sound
, copyDesktopItems
, graphicsmagick
, libGL
, libGLU
, libpng
, makeDesktopItem
}:
stdenv.mkDerivation rec {
2021-08-13 00:00:21 +03:00
pname = "dosbox";
version = "0.74-3";
2016-02-11 02:25:41 +03:00
src = fetchurl {
2021-08-13 00:00:21 +03:00
url = "mirror://sourceforge/dosbox/dosbox-${version}.tar.gz";
2022-02-01 03:37:28 +03:00
hash = "sha256-wNE91+0u02O2jeYVR1eB6JHNWC6BYrXDZpE3UCIiJgo=";
};
2022-02-01 03:37:28 +03:00
nativeBuildInputs = [
copyDesktopItems
graphicsmagick
];
2016-02-11 02:25:41 +03:00
2022-02-01 03:37:28 +03:00
buildInputs = [
SDL
SDL_net
SDL_sound
libGL
libGLU
libpng
];
2022-02-01 03:37:28 +03:00
hardeningDisable = [ "format" ];
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
2022-02-01 03:37:28 +03:00
desktopItems = [
(makeDesktopItem {
name = "dosbox";
exec = "dosbox";
icon = "dosbox";
comment = "x86 dos emulator";
desktopName = "DOSBox";
genericName = "DOS emulator";
categories = "Emulator;Game;";
})
];
postInstall = ''
mkdir -p $out/share/icons/hicolor/256x256/apps
gm convert src/dosbox.ico $out/share/icons/hicolor/256x256/apps/dosbox.png
'';
2018-11-11 05:37:00 +03:00
enableParallelBuilding = true;
2017-11-14 03:08:19 +03:00
meta = with lib; {
homepage = "http://www.dosbox.com/";
description = "A DOS emulator";
2022-02-01 03:37:28 +03: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 03:08:19 +03:00
maintainers = with maintainers; [ matthewbauer ];
2022-02-01 03:37:28 +03:00
platforms = platforms.unix;
};
}