From decbe95bda72743fa93fd9eedf8b77d7b30a5d75 Mon Sep 17 00:00:00 2001 From: Keenan Weaver Date: Wed, 22 May 2024 16:57:02 -0500 Subject: [PATCH] woof-doom: init at 14.5.0 (#313246) --- pkgs/by-name/wo/woof-doom/package.nix | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/wo/woof-doom/package.nix diff --git a/pkgs/by-name/wo/woof-doom/package.nix b/pkgs/by-name/wo/woof-doom/package.nix new file mode 100644 index 000000000000..06d51d2cd1ce --- /dev/null +++ b/pkgs/by-name/wo/woof-doom/package.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + SDL2, + SDL2_net, + openal, + libsndfile, + fluidsynth, + alsa-lib, + libxmp, + python3, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "woof-doom"; + version = "14.5.0"; + + src = fetchFromGitHub { + owner = "fabiangreffrath"; + repo = "woof"; + rev = "woof_${finalAttrs.version}"; + hash = "sha256-LA4blTlee0+nRK066hj19Zm/FL2qhaZ9Y5JMfMj3IRU="; + }; + + nativeBuildInputs = [ + cmake + python3 + ]; + + buildInputs = [ + SDL2 + SDL2_net + alsa-lib + fluidsynth + libsndfile + libxmp + openal + ]; + + meta = { + description = "Woof! is a continuation of the Boom/MBF bloodline of Doom source ports"; + homepage = "https://github.com/fabiangreffrath/woof"; + changelog = "https://github.com/fabiangreffrath/woof/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ keenanweaver ]; + mainProgram = "woof"; + platforms = with lib.platforms; darwin ++ linux ++ windows; + }; +})