about summary refs log tree commit diff
path: root/pkgs/development/interpreters/tcl
diff options
context:
space:
mode:
authorRyan Gonzalez <git@refi64.dev>2023-08-25 16:58:14 -0500
committerArtturin <Artturin@artturin.com>2023-09-17 05:05:20 +0300
commit1e3148d3fe8b2864ca1fa6340f0701f1d424274a (patch)
tree714e40528663b1859e6dcb06cb7c4deb3e574be5 /pkgs/development/interpreters/tcl
parentf8056c5007e1b0a35ba99f9b6d4dbc2f2dcd257c (diff)
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.
Diffstat (limited to 'pkgs/development/interpreters/tcl')
-rw-r--r--pkgs/development/interpreters/tcl/generic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/tcl/generic.nix b/pkgs/development/interpreters/tcl/generic.nix
index 8d4903add8999..009fca855eb8e 100644
--- a/pkgs/development/interpreters/tcl/generic.nix
+++ b/pkgs/development/interpreters/tcl/generic.nix
@@ -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" {} ''