From f4e5b50fe2bb4d429d419c00eabae2fc965caf7d Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sun, 4 Sep 2022 12:22:33 +0200 Subject: [PATCH] chocolateDoom: build man pages Closes #189632 --- pkgs/games/chocolate-doom/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/games/chocolate-doom/default.nix b/pkgs/games/chocolate-doom/default.nix index fabb12fa71fa..30fe2010b022 100644 --- a/pkgs/games/chocolate-doom/default.nix +++ b/pkgs/games/chocolate-doom/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv, autoreconfHook, pkg-config, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, fetchpatch }: +{ lib, stdenv, autoreconfHook, pkg-config, SDL2, SDL2_mixer, SDL2_net +, fetchFromGitHub, fetchpatch, python3 }: stdenv.mkDerivation rec { pname = "chocolate-doom"; @@ -21,11 +22,19 @@ stdenv.mkDerivation rec { }) ]; + outputs = [ "out" "man" ]; + postPatch = '' sed -e 's#/games#/bin#g' -i src{,/setup}/Makefile.am + patchShebangs --build man/{simplecpp,docgen} ''; - nativeBuildInputs = [ autoreconfHook pkg-config ]; + nativeBuildInputs = [ + autoreconfHook + pkg-config + # for documentation + python3 + ]; buildInputs = [ SDL2 SDL2_mixer SDL2_net ]; enableParallelBuilding = true;