parent
e6a9583fb1
commit
f4e5b50fe2
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "chocolate-doom";
|
pname = "chocolate-doom";
|
||||||
|
@ -21,11 +22,19 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -e 's#/games#/bin#g' -i src{,/setup}/Makefile.am
|
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 ];
|
buildInputs = [ SDL2 SDL2_mixer SDL2_net ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue