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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.7 KiB
Nix
Raw Normal View History

2022-02-01 00:37:28 +00:00
{ lib
, stdenv
, fetchurl
, autoreconfHook
, SDL_compat
2022-02-01 00:37:28 +00:00
, SDL_net
, SDL_sound
, copyDesktopItems
, graphicsmagick
, libGL
, libGLU
, libpng
, makeDesktopItem
}:
stdenv.mkDerivation rec {
2021-08-12 22:00:21 +01:00
pname = "dosbox";
version = "0.74-3";
2016-02-10 23:25:41 +00:00
src = fetchurl {
2021-08-12 22:00:21 +01:00
url = "mirror://sourceforge/dosbox/dosbox-${version}.tar.gz";
2022-02-01 00:37:28 +00:00
hash = "sha256-wNE91+0u02O2jeYVR1eB6JHNWC6BYrXDZpE3UCIiJgo=";
};
2022-02-01 00:37:28 +00:00
nativeBuildInputs = [
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 = [
SDL_compat
2022-02-01 00:37:28 +00:00
SDL_net
SDL_sound
libGL
libGLU
libpng
];
2022-02-01 00:37:28 +00:00
hardeningDisable = [ "format" ];
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";
categories = [ "Emulator" "Game" ];
2022-02-01 00:37:28 +00:00
})
];
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 02:37:00 +00:00
enableParallelBuilding = true;
2017-11-14 00:08:19 +00:00
meta = with lib; {
homepage = "http://www.dosbox.com/";
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;
};
}