-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Qt: Do not require mkDerivation #71089
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
Qt: Do not require mkDerivation #71089
Conversation
@worldofpeace Something like that. I'm not sure what the best option is: check for presence, or include by default. I like the idea of doing the right thing by default (including wrapQtAppsHook), but I know that trying to be "magic" often makes things difficult to understand. On the other hand, it is always possible to set |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/wrapqtappshook-out-of-tree/5619/7 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/declarative-wrappers-another-idea/6661/1 |
b6ac094
to
f3a5148
Compare
f3a5148
to
fcf74db
Compare
How is the debug flag related to |
We have to set certain |
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.
Let's try it out in staging
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.
Lets go to staging! 🎰
The qmake hook sets its own `CONFIG+=debug` or `CONFIG+=release` depending on how `qtbase` was built. We no longer rely on using the custom deriver for this feature.
fcf74db
to
c43b696
Compare
c43b696
to
00a1c6b
Compare
00a1c6b
to
812f779
Compare
# Integration with CMake: | ||
# Set the CMake build type corresponding to how qtbase was built. | ||
if [ -n "@debug@" ]; then | ||
cmakeFlags="${cmakeFlags-}${cmakeFlags:+ }-DCMAKE_BUILD_TYPE=Debug" |
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.
Maybe use cmakeBuildType
instead?
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.
👍 It is... possible that did not exist when this pull request was originally drafted. 😆
++ [ | ||
("-DCMAKE_BUILD_TYPE=" + (if debug then "Debug" else "Release")) | ||
]; | ||
|
||
enableParallelBuilding = args.enableParallelBuilding or true; |
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.
This should be redundant as both cmake and qmake setup hooks already enable this by default.
I am closing this pull request because my branch is completely broken and I don't know why. I will re-open later. |
Motivation for this change
This removes the need to use a custom
mkDerivation
with Qt applications. For compatibility, it remains, but it doesn't do much besides includewrapQtAppsHook
.See also: #65399 (comment)
TODO:
mkDerivation
.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @