Repository navigation
fix(nix): link the system sqlite - #50
Conversation
nixpkgs' cargo setup hook now sets LIBSQLITE3_SYS_USE_PKG_CONFIG=1, so libsqlite3-sys (via sqlx) needs sqlite as a build input; without it the link fails with 'cannot find -lsqlite3' and takes nixos-nvme's build down. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Since #25, `services.revue.user = "martin"` makes the module add `environment.persistence."/nix/persist".users.martin.directories = [ ".local/share/revue" ]`. On kleinbem/nix-config's nixos-nvme, `/home` is a real filesystem, so impermanence fails the evaluation: ``` - environment.persistence: All filesystems used for ephemeral storage must have the option "neededForBoot" set to true. Please fix the following filesystems: /home ``` So nix-config can't move its revue input past #24 at all, and the sqlite fix in #50 can't reach nixos-nvme. A user's state lives in their home, and persisting that is the host's job. The module now only persists `/var/lib/private/revue` (the DynamicUser case). Tested: kleinbem/nix-config's nixos-nvme, container-factory and container-factory-aarch64 evaluate with this branch; nixos-nvme failed with main. `nix flake check --no-build` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Application state persistence now reflects the configured user: setups without a configured user retain private application state, while configured-user setups rely on the home directory for user state. This avoids declaring separate persistence for user state that the host manages through its home-directory configuration. * **Documentation** * Clarified where Revue stores state in each configuration and added an example of persisting user state with impermanence. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…m libraries (#21) nixpkgs' cargo setup hook now makes `*-sys` crates link system libraries (`AWS_LC_SYS_USE_SYSTEM`, `LIBSQLITE3_SYS_USE_PKG_CONFIG`, `ZSTD_SYS_USE_PKG_CONFIG`, …; tracking: NixOS/nixpkgs#570938). Five packages in nixos-nvme's closure lack those build inputs and fail, so `just dev::apply` can't build the system. | Package | Fixed where | Override | |---|---|---| | goose-cli | nixpkgs master NixOS/nixpkgs@2f16d1a4f7 | `overrides/goose-cli.nix`: aws-lc, oniguruma, sqlite, zstd (the upstream fix) | | newsflash | nixpkgs master NixOS/nixpkgs@a8a0d9e4d2 | `overrides/rust-system-libs.nix` | | berd, mesh-llm, buzz-app | heads of NixOS/nixpkgs#580616, #571722, #577918 (nix-packages pins older commits) | `overrides/rust-system-libs.nix` | nixos-unstable has been stuck at 2026-11-07, so the master fixes aren't in it; the release workflow drops these once it builds them. `rust-system-libs.nix` adds aws-lc, openssl, sqlite and zstd plus pkg-config (the libraries these crates use; extra ones are harmless). Tested: - nixos-nvme built with these holds, `--keep-going`, on x86_64: goose-cli, newsflash, berd and revue (with kleinbem-dev/revue#50) built; mesh-llm and buzz-app are past the failing build scripts and still linking at the time of writing. - nix-detour's reach check (kleinbem-dev/nix-detour#66): every hold reaches nixos-nvme, no unheld copies left. - `checks.held-packages` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Added version holds for `berd`, `buzz-app`, `buzz-cli`, `goose-cli`, `mesh-llm` and `newsflash`. * Updated build requirements for `goose-cli` and other Rust-based packages to include system libraries and package-configuration tooling. * Reordered the existing `buzz-cli` hold in the package holds list; its details remain unchanged. These updates affect package maintenance and build configuration, with no changes to user-facing features or behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
#753) Bumps `revue` from kleinbem-dev/revue@3c2c36d to @be5c0ab. - kleinbem-dev/revue#50: revue links the system sqlite. nixpkgs' cargo hook now sets `LIBSQLITE3_SYS_USE_PKG_CONFIG=1`, and without sqlite the build fails with `cannot find -lsqlite3`, which stops nixos-nvme's `just dev::apply`. - kleinbem-dev/revue#51: the module no longer persists `/home/<user>/.local/share/revue` through impermanence. With any revue after #24, nixos-nvme failed the `neededForBoot` assertion for `/home`, so this input couldn't move at all. Its other changes since 3c2c36d are revue's own (reviewer, web, CI). Tested: nixos-nvme, container-factory and container-factory-aarch64 evaluate with this lock, and revue (with #50) builds on nixpkgs f4a03c0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
nixpkgs' cargo setup hook now sets
LIBSQLITE3_SYS_USE_PKG_CONFIG=1(NixOS/nixpkgs#570938), solibsqlite3-sys(through sqlx) links the system sqlite. revue has no sqlite build input, so the link fails withcannot find -lsqlite3, which stops kleinbem/nix-config's nixos-nvme build.Adds
pkgs.sqlitetobuildInputs. It's the only crate in Cargo.lock that the hook switches to a system library.Tested:
nix build .#defaultagainst nixpkgs f4a03c0 (what kleinbem/nix-config locks) builds; it failed at the link before.🤖 Generated with Claude Code
Summary by CodeRabbit