nixpkgs/pkgs/games/doom-ports/prboom-plus/default.nix

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

63 lines
1.1 KiB
Nix
Raw Normal View History

2022-04-23 23:31:45 +02:00
{ 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";
2023-06-27 12:59:28 +02:00
version = "2.6.66";
2022-04-23 23:31:45 +02:00
src = fetchFromGitHub {
owner = "coelckers";
repo = "prboom-plus";
rev = "v${version}";
2023-06-27 12:59:28 +02:00
sha256 = "sha256-moU/bZ2mS1QfKPP6HaAwWP1nRNZ4Ue5DFl9zBBrJiHw=";
2022-04-23 23:31:45 +02:00
};
sourceRoot = "${src.name}/prboom2";
2022-04-23 23:31:45 +02:00
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 ];
};
}