Merge pull request #170092 from kira64xyz/master

prboom-plus: init at 2.6.2
This commit is contained in:
Ivv 2022-04-24 20:51:27 +02:00 committed by GitHub
commit 41b500b737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 36 deletions

View file

@ -0,0 +1,62 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, SDL2
, SDL2_mixer
, SDL2_image
, SDL2_net
, fluidsynth
, soundfont-fluid
, portmidi
, dumb
, libvorbis
, libmad
, pcre
}:
stdenv.mkDerivation rec {
pname = "prboom-plus";
version = "2.6.2";
src = fetchFromGitHub {
owner = "coelckers";
repo = "prboom-plus";
rev = "v${version}";
sha256 = "iK70PMRLJiZHcK1jCQ2s88LgEMbcfG2pXjwCDVG7zUM=";
};
sourceRoot = "source/prboom2";
nativeBuildInputs = [
cmake
];
buildInputs = [
SDL2
SDL2_mixer
SDL2_image
SDL2_net
fluidsynth
portmidi
dumb
libvorbis
libmad
pcre
];
# Fixes impure path to soundfont
prePatch = ''
substituteInPlace src/m_misc.c --replace \
"/usr/share/sounds/sf3/default-GM.sf3" \
"${soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2"
'';
meta = with lib; {
homepage = "https://github.com/coelckers/prboom-plus";
description = "An advanced, Vanilla-compatible Doom engine based on PrBoom";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.ashley ];
};
}

View file

@ -1,35 +0,0 @@
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_net
, libGLU ? null
, libGL ? null
, useOpenGL ? stdenv.hostPlatform == stdenv.buildPlatform
}:
assert useOpenGL -> libGL != null && libGLU != null;
stdenv.mkDerivation rec {
pname = "prboom";
version = "2.5.0";
src = fetchurl {
url = "mirror://sourceforge/prboom/prboom-${version}.tar.gz";
sha256 = "1bjb04q8dk232956k30qlpq6q0hxb904yh1nflr87jcc1x3iqv12";
};
buildInputs = [ SDL SDL_mixer SDL_net ]
++ lib.optionals useOpenGL [ libGL libGLU ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
configureFlags = [
(lib.enableFeature useOpenGL "gl")
(lib.enableFeature doCheck "sdltest")
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--disable-cpu-opt"
"--without-x"
"ac_cv_type_uid_t=yes"
"ac_cv_type_gid_t=yes"
];
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
mv $out/games/ $out/bin
'';
}

View file

@ -1031,6 +1031,7 @@ mapAliases ({
pinentry_gtk2 = pinentry-gtk2; # Added 2019-10-14
pinentry_qt = pinentry-qt; # Added 2019-10-14
pinentry_qt5 = pinentry-qt; # Added 2020-02-11
prboom = throw "prboom was removed because it was abandoned by upstream, use prboom-plus instead"; # Added 2022-04-24
privateer = throw "privateer was removed because it was broken"; # Added 2021-05-18
processing3 = processing; # Added 2019-08-16
procps-ng = throw "'procps-ng' has been renamed to/replaced by 'procps'"; # Converted to throw 2022-02-22

View file

@ -31881,7 +31881,7 @@ with pkgs;
powermanga = callPackage ../games/powermanga { };
prboom = callPackage ../games/prboom { };
prboom-plus = callPackage ../games/prboom-plus { };
pysolfc = python3Packages.callPackage ../games/pysolfc { };