diff options
author | Ashley Chiara <ashley@kira64.xyz> | 2022-04-23 23:31:45 +0200 |
---|---|---|
committer | Ashley Chiara <ashley@kira64.xyz> | 2022-04-24 18:10:08 +0200 |
commit | ded34c9cb0002f25a0bfe3afe1342384f16fad17 (patch) | |
tree | 0e53959c55fd6a34e8dbd69afebf75da0d3ed166 /pkgs/games/prboom-plus | |
parent | 0122dbc41235ab83d16bdce1a047b20a27d3d475 (diff) |
prboom-plus: init at 2.6.2
Diffstat (limited to 'pkgs/games/prboom-plus')
-rw-r--r-- | pkgs/games/prboom-plus/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/games/prboom-plus/default.nix b/pkgs/games/prboom-plus/default.nix new file mode 100644 index 0000000000000..a249a4585bd8c --- /dev/null +++ b/pkgs/games/prboom-plus/default.nix @@ -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 ]; + }; +} |