tcl.tclRequiresCheckHook: refer to tclsh by absolute path

Without this, tcl has to be put in nativeBuildInputs or the hook fails.
This commit is contained in:
Francesco Gazzetta
2026-09-23 14:52:29 +02:00
parent 23669631b0
commit fee414494c
2 changed files with 2 additions and 1 deletions

View File

@@ -225,6 +225,7 @@ stdenv.mkDerivation (finalAttrs: {
name = "tcl-requires-check-hook";
substitutions = {
tcl_hook = ./tcl-requires-check-hook.tcl;
tclsh = lib.getExe finalAttrs.finalPackage;
};
meta = {
inherit (finalAttrs.meta) maintainers platforms;

View File

@@ -7,7 +7,7 @@ tclRequiresCheckPhase () {
if [ -n "$tclRequiresCheck" ]; then
export TCLLIBPATH="$out/lib $TCLLIBPATH" # Redundant if tcl-package-hook is also used
# FIXME: For some reason the output gets swallowed unless we pipe it through cat‽
tclsh @tcl_hook@ 2>&1 | cat
@tclsh@ @tcl_hook@ 2>&1 | cat
fi
}