mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
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:
parent
f8056c5007
commit
1e3148d3fe
@ -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" {} ''
|
||||
|
Loading…
Reference in New Issue
Block a user