tclPackages.mkTclDerivation: enable stubs by default

This commit is contained in:
Francesco Gazzetta
2026-03-07 09:53:59 +01:00
parent e8cbb6bf1b
commit 49e44efa09
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -13,7 +13,8 @@ Tcl packages are typically built with `tclPackages.mkTclDerivation`.
Tcl dependencies go in `buildInputs`/`nativeBuildInputs`/... like other packages.
For more complex package definitions, such as packages with mixed languages, use `tcl.tclPackageHook`.
Where possible, make sure to enable stubs for maximum compatibility, usually with the `--enable-stubs` configure flag.
Where possible, make sure to enable stubs for maximum compatibility.
If you are using `mkTclDerivation`, `--enable-stubs` will be automatically added to `configureFlags`.
Here is a simple package example to be called with `tclPackages.callPackage`.
@@ -33,7 +34,6 @@ mkTclDerivation rec {
configureFlags = [
"--with-ssl-dir=${openssl.dev}"
"--enable-stubs"
];
meta = {
@@ -37,6 +37,8 @@ let
"--with-tcl=${tcl}/lib"
"--with-tclinclude=${tcl}/include"
"--exec-prefix=${placeholder "out"}"
# Enable stubs by default for compatibility across minor versions
"--enable-stubs"
];
self = (