-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
qt6.qtbase: fix macdeployqt would not find qmlimportscanner #248149
Conversation
83df5cc
to
82c4882
Compare
The qmlimportscanner tool is provided by qtdeclarative. Because of the modularized installation in Nix, it can not be found via the usual mechanisms. Also, hard-coding it like we do for Qt5 would also not work, as it would require making qtbase depend on qtdeclarative. Here we add an option to provide its location via the environment. While this means macdeployqt does not work out of the box, it provides a workaround for users. Also, we make sure that qmlimportscanner gets passed the right QML import paths as described in the environment.
82c4882
to
a5b9264
Compare
I just pushed some tweaks. I have verified in another project that with all these tweaks, using |
This closes #63093 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I'm happy with the changes, as it is isolated within macdeployqt
and should not breaking existing usecases.
...ibraries/qt-6/patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-actuall.patch
Show resolved
Hide resolved
...pment/libraries/qt-6/patches/0010-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, cc @K900 to see if you have any other suggestions.
Any news on this? I'd love to get this in as I have a PR on another project pending on these changes. But of course take as much time as you need, the work you're all doing on taking care of Nixpkgs is wonderful! 🙏 |
@K900 might be too busy to take a look, let's merge this and see. |
Thank you so much @NickCao ! |
Description of changes
The qmlimportscanner tool is provided by qtdeclarative. Because of the modularized installation in Nix, it can not be found via the usual mechanisms. Also, hard-coding it like we do for Qt5 would also not work, as it would require making qtbase depend on qtdeclarative.
Here we add an option to provide its location via the environment. While this means macdeployqt does not work out of the box, it provides a workaround for users.
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/
)