diff --git a/pkgs/games/xconq/default.nix b/pkgs/games/xconq/default.nix index b9266cb88af7..1af7f42beb1e 100644 --- a/pkgs/games/xconq/default.nix +++ b/pkgs/games/xconq/default.nix @@ -30,8 +30,8 @@ rec { inherit buildInputs; /* doConfigure should be removed if not needed */ - phaseNames = ["addInputs" "doUnpack" "fixMakefiles" "fixCfiles" "doConfigure" - "doMakeInstall" "doWrap"]; + phaseNames = ["addInputs" "doUnpack" "fixMakefiles" "fixCfiles" "fixTCLfiles" + "doConfigure" "doMakeInstall" "doWrap"]; doWrap = a.makeManyWrappers ''$out/bin/*'' ''--prefix TCLLIBPATH : "${tk}/lib"''; @@ -46,6 +46,10 @@ rec { sed -re '/unitp = view_unit[(]uview[)]/aelse *unitp = NULL\;' -i tcltk/tkmap.c '' ["minInit" "doUnpack"]; + fixTCLfiles = a.fullDepEntry '' + sed -re 's@MediumBlue@LightBlue@g' -i tcltk/tkconq.tcl + '' ["minInit" "doUnpack"]; + configureFlags = [ "--enable-alternate-scoresdir=scores" "--with-tclconfig=${tcl}/lib"