Skip to content

vaultwarden: fix build with dbBackend = "sqlite" - #584055

Merged
dotlambda merged 2 commits into
NixOS:staging-nextfrom
dotlambda:vaultwarden
Nov 7, 2026
Merged

dotlambda merged 2 commits into
NixOS:staging-nextfrom
dotlambda:vaultwarden

Conversation

@dotlambda

@dotlambda dotlambda commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

fallout from #537108

For some reason, the NixOS module defaults to dbBackend = "sqlite" while the package defaults to dbBackend = "sqlite_system".
In fact, the module doesn't even offer the latter:

dbBackend = lib.mkOption {
type = lib.types.enum [
"sqlite"
"mysql"
"postgresql"
];
default = "sqlite";

@mweinelt changed the package's default in #516109
Note that according to https://github.com/dani-garcia/vaultwarden/blob/1.37.5/Cargo.toml#L34-L35, the difference is that sqlite_system dynamically links the library, which should probably also be the default for the NixOS module.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 6, 2026
@dotlambda
dotlambda requested a review from mweinelt November 6, 2026 15:57
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` and removed 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 6, 2026
@dotlambda

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 584055 --additional-package vaultwarden.tests
Commit: 4578487868ada441bec185ee47bb999bb98f8072


x86_64-linux

⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
✅ 5 tests built:
  • vaultwarden.tests.sqlite-backup
  • vaultwarden.tests.postgresql
  • vaultwarden.tests.sqlite_system
  • vaultwarden.tests.sqlite
  • vaultwarden.tests.mysql

@mweinelt

mweinelt commented Nov 7, 2026

Copy link
Copy Markdown
Member

I don't remember doing that change any more to be honest. If it works, it works?

@dotlambda
dotlambda added this pull request to the merge queue Nov 7, 2026
Merged via the queue into NixOS:staging-next with commit c2e0a6e Nov 7, 2026
28 checks passed
@dotlambda
dotlambda deleted the vaultwarden branch November 7, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants