From 49e44efa09d08b5f6dd2574879c2ce55eecb096c Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Sat, 7 Mar 2026 09:53:59 +0100 Subject: [PATCH] tclPackages.mkTclDerivation: enable stubs by default --- doc/languages-frameworks/tcl.section.md | 4 ++-- pkgs/development/interpreters/tcl/mk-tcl-derivation.nix | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/languages-frameworks/tcl.section.md b/doc/languages-frameworks/tcl.section.md index 71ec9d89eb50..37bf940ebca3 100644 --- a/doc/languages-frameworks/tcl.section.md +++ b/doc/languages-frameworks/tcl.section.md @@ -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 = { diff --git a/pkgs/development/interpreters/tcl/mk-tcl-derivation.nix b/pkgs/development/interpreters/tcl/mk-tcl-derivation.nix index 55da68361071..3291d942daec 100644 --- a/pkgs/development/interpreters/tcl/mk-tcl-derivation.nix +++ b/pkgs/development/interpreters/tcl/mk-tcl-derivation.nix @@ -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 = (