Revert "xconq: Simplify package with tcl.tclPackageHook"

This reverts commit 113826a892512eb2e19985310fd7d4a39db4d75e, which
ended up breaking the Tk import at runtime.
This commit is contained in:
Andrew Brooks 2021-05-07 12:51:47 -05:00
parent 17a561e1cf
commit a49a274abf

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ cpio xorgproto libX11 libXmu libXaw libXt tcl tk libXext
fontconfig makeWrapper tcl.tclPackageHook ];
fontconfig makeWrapper ];
configureFlags = [
"--enable-alternate-scoresdir=scores"
@ -39,6 +39,12 @@ stdenv.mkDerivation rec {
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; {
description = "A programmable turn-based strategy game";
maintainers = with maintainers; [ raskin ];