xconq: Simplify package with tcl.tclPackageHook

This commit is contained in:
Andrew Brooks 2021-04-30 18:25:35 -05:00
parent f17ca3f517
commit a4f54890d5

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ cpio xorgproto libX11 libXmu libXaw libXt tcl tk libXext buildInputs = [ cpio xorgproto libX11 libXmu libXaw libXt tcl tk libXext
fontconfig makeWrapper ]; fontconfig makeWrapper tcl.tclPackageHook ];
configureFlags = [ configureFlags = [
"--enable-alternate-scoresdir=scores" "--enable-alternate-scoresdir=scores"
@ -39,12 +39,6 @@ stdenv.mkDerivation rec {
sed -re 's@MediumBlue@LightBlue@g' -i tcltk/tkconq.tcl sed -re 's@MediumBlue@LightBlue@g' -i tcltk/tkconq.tcl
''; '';
postInstall = ''
for file in $out/bin/*; do
wrapProgram $file --prefix TCLLIBPATH ' ' "${tk}/lib"
done
'';
meta = with lib; { meta = with lib; {
description = "A programmable turn-based strategy game"; description = "A programmable turn-based strategy game";
maintainers = with maintainers; [ raskin ]; maintainers = with maintainers; [ raskin ];