tcl.tclPackageHook: Use makeBinaryWrapper

Given the number of entries in TCLLIBPATH when using tcllib, this
results in some massive startup time speedups:

```
$ nix shell 'nixpkgs#tcl2048' -c sh -c 'echo q | time 2048'
```

takes .44s on master but only .01s with this change.
This commit is contained in:
Ryan Gonzalez 2023-08-25 16:58:14 -05:00 committed by Artturin
parent f8056c5007
commit 1e3148d3fe

View File

@ -62,7 +62,7 @@ let
libdir = "lib/${libPrefix}";
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
name = "tcl-package-hook";
propagatedBuildInputs = [ buildPackages.makeWrapper ];
propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ];
} ./tcl-package-hook.sh) {};
# verify that Tcl's clock library can access tzdata
tests.tzdata = runCommand "${pname}-test-tzdata" {} ''