git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #50216 from orivej/dosbox

dosbox: 0.74 -> 0.74-2

commit59ddb14543107c9ceb53d96ee796c2c7d0c4d9fb authorOrivej Desh (NixOS) <40807862+orivej-nixos@users.noreply.github.com> dateSun 11 Nov 2018, 03:09 (8 years ago) parentcf7e71265e0b5c
2 files changed+11−22
pkgs/development/libraries/SDL_sound/default.nix+5−3 pkgs/misc/emulators/dosbox/default.nix+6−19
pkgs/development/libraries/SDL_sound/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, SDL, libvorbis, flac, libmikmod }:
1+{ stdenv, lib, fetchurl, SDL, libvorbis, flac, libmikmod }:
22
33stdenv.mkDerivation rec {
44 name = "SDL_sound-${version}";
@@ -11,9 +11,11 @@ stdenv.mkDerivation rec {
1111
1212 buildInputs = [ SDL libvorbis flac libmikmod ];
1313
14− meta = with stdenv.lib; {
14+ configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
15+
16+ meta = with lib; {
1517 description = "SDL sound library";
16− platforms = platforms.linux;
18+ platforms = platforms.unix;
1719 license = licenses.lgpl21;
1820 homepage = https://www.icculus.org/SDL_sound/;
1921 };
pkgs/misc/emulators/dosbox/default.nix+6−19
@@ -1,31 +1,16 @@
1−{ stdenv, lib, fetchurl, SDL, makeDesktopItem, libGLU_combined }:
1+{ stdenv, lib, fetchurl, makeDesktopItem, SDL, SDL_net, SDL_sound, libGLU_combined, libpng }:
22
33stdenv.mkDerivation rec {
4− name = "dosbox-0.74";
4+ name = "dosbox-0.74-2";
55
66 src = fetchurl {
77 url = "mirror://sourceforge/dosbox/${name}.tar.gz";
8− sha256 = "01cfjc5bs08m4w79nbxyv7rnvzq2yckmgrbq36njn06lw8b4kxqk";
8+ sha256 = "1ksp1b5szi0vy4x55rm3j1y9wq5mlslpy8llpg87rpdyjlsk0xvh";
99 };
1010
11− patches =
12− [ # Fix building with GCC 4.6.
13− (fetchurl {
14− url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/games-emulation/dosbox/files/dosbox-0.74-gcc46.patch?revision=1.1";
15− sha256 = "03iv1ph7fccfw327ngnhvzwyiix7fsbdb5mmpxivzkidhlrssxq9";
16− })
17− (fetchurl {
18− url = "https://svnweb.freebsd.org/ports/head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp?revision=435580&view=co&pathrev=435580";
19− sha256 = "1mbj5wrn53k0zds2adys34949vzsbfgm0pmsyx14v9j0cxi7drca";
20− name = "patch-src_gui_sdlmain.cpp";
21− })
22− ];
23−
24− patchFlags = "-p0";
25−
2611 hardeningDisable = [ "format" ];
2712
28− buildInputs = [ SDL libGLU_combined ];
13+ buildInputs = [ SDL SDL_net SDL_sound libGLU_combined libpng ];
2914
3015 configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
3116
@@ -43,6 +28,8 @@ stdenv.mkDerivation rec {
4328 cp ${desktopItem}/share/applications/* $out/share/applications
4429 '';
4530
31+ enableParallelBuilding = true;
32+
4633 meta = with lib; {
4734 homepage = http://www.dosbox.com/;
4835 description = "A DOS emulator";