Skip to content

viddy: use system sqlite - #585402

Merged
bendlas merged 1 commit into
NixOS:masterfrom
desmitry:viddy-system-sqlite
Nov 9, 2026
Merged

bendlas merged 1 commit into
NixOS:masterfrom
desmitry:viddy-system-sqlite

Conversation

@desmitry

@desmitry desmitry commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Since #537108 the cargo setup hook makes libsqlite3-sys link the system SQLite instead of the bundled copy, so viddy failed to link with cannot find -lsqlite3. This adds sqlite to buildInputs; pkg-config turned out not to be needed. viddy is listed in the tracking issue #570940.

Fixes #585400

Hydra failure: https://hydra.nixos.org/build/352553196

Disclosure: Claude Code (Claude Opus 5.5) helped find the cause, write the change and draft this description. I reviewed the diff and the test results before submitting.

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from phanirithvij November 9, 2026 11:39
@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. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs labels Nov 9, 2026

@phanirithvij phanirithvij left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, diff lgtm

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 9, 2026
Comment thread pkgs/by-name/vi/viddy/package.nix Outdated
Comment on lines +23 to +24
nativeBuildInputs = [ pkg-config ];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
nativeBuildInputs = [ pkg-config ];

For me that even works without this

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.

Thanks, confirmed: it builds and links the system sqlite on master with just buildInputs = [ sqlite ];. Dropped pkg-config in 7971cbb.

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.

I would recommend not dropping it as within our cargo hook we assert that we will be providing it via pkg-config. The fact that it works without pkg-config is more of a coincidence than anything (the fact that we provide some flags via wrappers and stuff). So if the build script decides to change how it passes flags, it would be well within its right to break us.

@SuperSandroBot

Copy link
Copy Markdown

@phanirithvij
phanirithvij self-requested a review November 9, 2026 14:14
Since NixOS#537108 the cargo setup hook makes libsqlite3-sys link the system
library instead of the bundled copy, so the build failed with
"cannot find -lsqlite3".

Assisted-by: Claude Code (Claude Opus 5.5)
@desmitry
desmitry force-pushed the viddy-system-sqlite branch from 4304a2a to 7971cbb Compare November 9, 2026 14:27
@phanirithvij

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review-gha (e9e0d4e)

Command: nixpkgs-review pr 585402
Commit: 7971cbbdb3fe3a8e8d3b30e14590af5f8584c527 (subsequent changes)
Merge: 11db1298c55efcfda0f5e27a7412863be00d58ca

Logs: https://github.com/phanirithvij/nixpkgs-review-gha/actions/runs/42635227343/attempts/1


x86_64-linux

✅ 1 package built:
  • viddy

aarch64-linux

✅ 1 package built:
  • viddy

@phanirithvij

Copy link
Copy Markdown
Member

Thanks @SuperSandro2000 for catching that.

@bendlas bendlas 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.

Thank you!

@bendlas
bendlas added this pull request to the merge queue Nov 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 9, 2026
Merged via the queue into NixOS:master with commit b562528 Nov 9, 2026
34 checks passed
@desmitry
desmitry deleted the viddy-system-sqlite branch November 10, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: viddy

6 participants