From c5516b9d0bbbf339e7f1e845b657387ea2a498fc Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 21 Jan 2026 19:11:20 +0100 Subject: [PATCH] sqlite: fix static build TCL support requires building libtclsqlite as a shared library. Fixes: a3987ff32852 ("sqlite: Build canonical source with tcl") --- pkgs/development/libraries/sqlite/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index a06c1592df0f..c0b7c4792e4e 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -82,7 +82,7 @@ stdenv.mkDerivation rec { "--bindir=${placeholder "bin"}/bin" "--includedir=${placeholder "dev"}/include" "--libdir=${placeholder "out"}/lib" - "--with-tcl=${lib.getLib tcl}/lib" + (if stdenv.hostPlatform.isStatic then "--disable-tcl" else "--with-tcl=${lib.getLib tcl}/lib") ] ++ lib.optional (!interactive) "--disable-readline" # autosetup only looks up readline.h in predefined set of directories. @@ -129,6 +129,8 @@ stdenv.mkDerivation rec { ''; doCheck = true; + # When tcl is not available, only run test targets that don't need it. + checkTarget = lib.optionalString stdenv.hostPlatform.isStatic "fuzztest sourcetest"; passthru = { tests = {