mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-12 14:57:21 +00:00
xconq: Simplify package with tcl.tclPackageHook
This commit is contained in:
parent
f17ca3f517
commit
a4f54890d5
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user