Skip to content

chipass: init at 2026.09.0 - #562875

Open
provokateurin wants to merge 1 commit into
NixOS:masterfrom
provokateurin:chipass-init
Open

provokateurin wants to merge 1 commit into
NixOS:masterfrom
provokateurin:chipass-init

Conversation

@provokateurin

@provokateurin provokateurin commented Sep 13, 2026

Copy link
Copy Markdown
Member

Inits ChiPass, a hard fork of KeepassXC. The packaging code and tests were copied from KeepassXC and adjusted according to https://codeberg.org/ChiPass/ChiPass/src/branch/main/INSTALL.md.

For some reason the theming is off:
image
I'm not sure if that is an issue with the packaging or upstream (because there is no theme switcher in ChiPass, so it could be intentional?).

I can confirm that the KeepassXC browser extension just works OOTB and so far there are no plans to fork it as well, so no additional changes are needed for it: https://codeberg.org/ChiPass/ChiPass/issues/144

CC @whitequark

Things done

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Sep 13, 2026
@provokateurin

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 562875
Commit: a1069773cf017e1d2c753f27486d826bdcdbc414


x86_64-linux

✅ 1 package built:
  • chipass

@whitequark

Copy link
Copy Markdown

The theming is definitely off. We did change the theme code (for branding and code quality reasons) but it's not supposed to look like Win95. If you run the flake in the repo, does it pick up a theme for you?

@provokateurin

provokateurin commented Sep 13, 2026

Copy link
Copy Markdown
Member Author

I built and ran the flatpak from the repo and it doesn't have the same issue (it just looks like KeepassXC in the screenshot above). There is very little difference between the packaging code for KeepassXC and ChiPass, so I'm not sure where the issue is. It could be related to the Qt6 migration, but I'm not sure how to figure that out.

@arcayr

arcayr commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

haha got distracted and sniped. thanks stardew valley.

the theming issue above doesn't happen to me if i build yours, same as mine. are you doing wonky stuff with your qt themes?

yours:

image

mine:

image

the flatpak (light mode because it's in flatpak and won't be picking up themes):

image

i think mainProgram will need to be ChiPass, not chipass, for this. the compiled binaries are as such (nix run .#chipass here will fail - check the result dir).

everything else works by my eye. i'm not super pumped about the firefox bridge thing (i don't really like it in keepassxc either ... weird crossover of concerns), but that's a minor thing.

@arcayr arcayr self-assigned this Sep 14, 2026
@provokateurin

Copy link
Copy Markdown
Member Author

are you doing wonky stuff with your qt themes?

No, as far as I know.

i think mainProgram will need to be ChiPass, not chipass

That's correct, I will fix it.

@arcayr

arcayr commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

No, as far as I know.

if you set QT_STYLE_OVERRIDE=Fusion, does it show up with the ~normal theme?

if i set it to Windows, which is the other available option to me, it shows up looking like the op (but dark mode):
image

@provokateurin

Copy link
Copy Markdown
Member Author

if you set QT_STYLE_OVERRIDE=Fusion, does it show up with the ~normal theme?

With that it looks like in your screenshots, but still not like it does for me in the flatpak (using the KDE Plasma Breeze theme).

@provokateurin

Copy link
Copy Markdown
Member Author
$ QT_STYLE_OVERRIDE=Breeze ./result/bin/ChiPass
QApplication: invalid style override 'Breeze' passed, ignoring it.
	Available styles: Breeze, Windows, Fusion
qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Unable to open /proc/91268/root")

@arcayr

arcayr commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

i've dropped a question to the kde big brains on matrix. should hopefully have an answer in a bit, as i'm nowhere near familiar enough with qt to identify the specific issue.

another user has replicated this on their own kde install, so it's not just you.

@whitequark

Copy link
Copy Markdown

How do I replicate the failure?

@arcayr

arcayr commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

edit: the below assumes you have the flakes and nix-command cli, but if you can use the flake in the chipass repo you should be set on this front. not 100% sure where you are on the nix scale so apologies if any of this is obvious, just wanted to get it clear from the get-go.


How do I replicate the failure?

sorry, i was going to message you on fedi but didn't want to bother you with something that is probably some niche nix packaging bug. 😅

nix run github:provokateurin/nixpkgs/chipass-init#chipass

will pull this pr, build it, and run it.

if you're wanting env vars in you'll also need --impure:

QT_DEBUG_PLUGINS=1 QT_STYLE_OVERRIDE=Breeze nix run --impure github:provokateurin/nixpkgs/chipass-init#chipass

i'm not on kde but if i inject breeze into my env w/ nix shell nixpkgs#kdePackages.breeze, and then run the second command, it shows up using breeze.

image

if you want the underlying dev env to go full manual you can nix develop github:provokateurin/nixpkgs/chipass-init#chipass. each of the steps the nix deriv takes can be done manually then:

unpackPhase && patchPhase && configurePhase;

# ... do whatever 

buildPhase;

normally it'd be something like abi compat issues with the version of qt, but that doesn't seem to be the issue here because it works with the QT_STYLE_OVERRIDE command, and i peeped the chipass source which doesn't seem to be doing anything odd with qt.

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: package (new) This PR adds a new package 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 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. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants