3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

5 commits

Author SHA1 Message Date
Sandro Jäckel 4109b119c2
tcl: allow passing in extra wrapper args through tclWrapperArgs 2021-06-17 20:39:44 +02:00
Andrew Brooks 4b5d85bf44 tcl: use double square brackets consistently in tcl package hook 2021-05-21 15:18:30 -05:00
Andrew Brooks 927251e781 tcl: avoid readonly local in package hook
If a path with a space were added to TCLLIBPATH, _addToTclLibPath
would attempt to mutate the tclPkg local and fail.
2021-05-21 15:18:29 -05:00
Andrew Brooks e22fe366af tcl: fix TCLLIBPATH edge cases in tcl package hook
TCLLIBPATH was not actually extended if a package's path was a substring
of a package already on the path. This commit fixes that behavior.

Additionally, '--prefix' is now used in place of '--set', as the latter
was found to break tkremind from the remind package.
2021-05-21 15:18:26 -05:00
Andrew Brooks c6ca1ba9c7 tcl: Add tclPackageHook and mkTclDerivation
Implement tclPackageHook, a setup hook that adjusts TCLLIBPATH to include the
paths of any installed Tcl packages, propagates that TCLLIBPATH to
anti-dependencies, and wraps any installed binaries to set their TCLLIBPATH.

Additionally, implement a makePythonPackage-style mkDerivation wrapper to use
reasonable defaults for Tcl packages and use tclPackageHook.
2021-05-21 15:18:03 -05:00