Skip to content

taskwarrior3: fix build with system SQLite - #585295

Merged
doronbehar merged 1 commit into
NixOS:masterfrom
Seeker0472:fix/taskwarrior3-system-sqlite
Nov 10, 2026
Merged

doronbehar merged 1 commit into
NixOS:masterfrom
Seeker0472:fix/taskwarrior3-system-sqlite

Conversation

@Seeker0472

@Seeker0472 Seeker0472 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Provide SQLite and pkg-config for libsqlite3-sys when the Cargo setup hook requests system libraries.

Use the fix merged upstream in GothenburgBitFactory/taskwarrior#4223, fetched from commit bd86de7a6e99b1bc8d1a8f5704a08571afd2cdef. It propagates system SQLite through taskchampion_lib-static to the C++ consumers when LIBSQLITE3_SYS_USE_PKG_CONFIG selects the system library.

Related: #570940; system-library migration: #537108.

Validation:

  • nix build -f . taskwarrior3 --no-link passed on x86_64-linux with sandboxing enabled; all 177 install-check tests passed, including the version check.
  • task --version succeeded and the executable links to Nixpkgs SQLite.
  • The existing Taskchampion/Taskwarrior synchronization test passed in QEMU VMs, using the server fix already merged in taskchampion-sync-server: fix build with system SQLite and zstd #585293. The VM harness reuses the existing machine configurations and test script; the original nspawn runner requires the uid-range feature unavailable on this builder.
  • Derivation evaluation passed on aarch64-linux and aarch64-darwin; those platforms were not built.

Assisted by Codex (GPT-6), also disclosed in the commit trailer.

Things done

@Seeker0472
Seeker0472 force-pushed the fix/taskwarrior3-system-sqlite branch from 82ad8c3 to eb10295 Compare November 9, 2026 07:36
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. llm-assisted Contributions that include code generation with LLMs labels Nov 9, 2026

@doronbehar doronbehar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

patches = [
# Nixpkgs-specific: cargoSetupHook selects system SQLite, so propagate
# its link dependency through the CMake/Rust bridge as well.
./use-system-sqlite.patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not nixpkgs specific IMO. See:

Let's give upstream a day or two to reply, and use fetchpatch with a link to the PR if upstream is neutral / positive about my patch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so
Maybe we need wait for the next release that includes it and update the Nixpkgs package then

Provide SQLite and pkg-config for libsqlite3-sys when the Cargo setup
hook requests system libraries.

Apply the merged upstream fix to propagate SQLite through Corrosion's
static crate target to its C++ consumers.

GothenburgBitFactory/taskwarrior#4223
Related to NixOS#570940

Assisted-by: Codex (GPT-6)
@Seeker0472
Seeker0472 force-pushed the fix/taskwarrior3-system-sqlite branch from eb10295 to 5884fa7 Compare November 10, 2026 03:43
@doronbehar
doronbehar added this pull request to the merge queue Nov 10, 2026
@doronbehar doronbehar mentioned this pull request Nov 10, 2026
4 tasks done
Merged via the queue into NixOS:master with commit 59be980 Nov 10, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants