Merge pull request #189707 from nagy/chocolate-doom-man

This commit is contained in:
Sandro 2022-09-04 15:00:10 +02:00 committed by GitHub
commit 8c79600238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;