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}";
|
libdir = "lib/${libPrefix}";
|
||||||
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
|
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
|
||||||
name = "tcl-package-hook";
|
name = "tcl-package-hook";
|
||||||
propagatedBuildInputs = [ buildPackages.makeWrapper ];
|
propagatedBuildInputs = [ buildPackages.makeBinaryWrapper ];
|
||||||
} ./tcl-package-hook.sh) {};
|
} ./tcl-package-hook.sh) {};
|
||||||
# verify that Tcl's clock library can access tzdata
|
# verify that Tcl's clock library can access tzdata
|
||||||
tests.tzdata = runCommand "${pname}-test-tzdata" {} ''
|
tests.tzdata = runCommand "${pname}-test-tzdata" {} ''
|
||||||
|
Loading…
Reference in New Issue
Block a user