{ lib, stdenv, fetchFromGitHub, autoreconfHook, libpng, libsamplerate, pkg-config, python3, SDL2, SDL2_mixer, SDL2_net, }: stdenv.mkDerivation (finalAttrs: { pname = "chocolate-doom"; version = "3.1.1"; src = fetchFromGitHub { owner = "chocolate-doom"; repo = "chocolate-doom"; tag = "chocolate-doom-${finalAttrs.version}"; hash = "sha256-wa4wxz70mxP41bNxWYD1EyxBGfyRoxEMPaoupvaK+XY="; }; postPatch = '' patchShebangs --build man/{simplecpp,docgen} ''; nativeBuildInputs = [ autoreconfHook pkg-config # for documentation python3 ]; buildInputs = [ libpng libsamplerate SDL2 SDL2_mixer SDL2_net ]; outputs = [ "out" "man" ]; enableParallelBuilding = true; strictDeps = true; meta = { homepage = "https://www.chocolate-doom.org"; changelog = "https://github.com/chocolate-doom/chocolate-doom/releases/tag/chocolate-doom-${finalAttrs.version}"; description = "Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s"; mainProgram = "chocolate-doom"; license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ Gliczy ]; }; })