-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/qt: set QT_PLUGIN_PATH and QML2_IMPORT_PATH when enabled #211003
Conversation
The path should actually be added to |
Yeah I originally had written this to set the values directly from the packages to Also qt5 was already pulling from Those issues aside, I do not feel strongly if you or anyone else has a better idea to implement this or would prefer something else |
I'm happy to merge this, just update it to use |
0538da7
to
185874d
Compare
This causes issues when a package uses another Qt library version, as when you pull one specific package from nixos-unstable. |
Is this an issue distinct from #227795? If so, can you open a new issue and describe what you are experiencing? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/gpt4all-nix-derivation/27744/3 |
I wonder if this should be added even when My usecase is adding qt6 plugins (e.g. #245571) to my home-manager config (using |
@lilyinstarlight Yes, it is different. It also happens when one application / dependency uses a patched Qt, especially if using a derivation from nixpkgs-unstable on a nixos-23.05 system |
Description of changes
This is needed for installed Qt plugins to be found by Qt6 (and Qt5 seemed to possibly be working by accident rather than intent, so I set those paths here as well)
I can confirm this lets me use adwaita on qgnomeplatform with Qt6 apps
Fixes #210891
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes