-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
qbittorrent: 4.5.5 -> 4.6.0 + other changes #263111
Conversation
note that the switch to qt6 is likely to affect theming for a lot of people. qt support outside kde is wonky at best. I use swaywm and qbittorret-4.6.0 from your branch does not obey any theme. |
@foolnotion I'm not aware of possible theming issues on Sway. That said, I've added qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita";
}; |
I have something similar, I'd suggest worry about this after it gets merged. Just be aware a lot of people have issues with theming e.g. #260696 |
The issue is with KDE users as the current qt5 based Plasma doesn't have any Qt6 themes. There really is no way around that until Plasma 6 lands. The nicer way to do this is to build both qt5 and qt6 versions of this and have the end-user choose. This is what we do for a number of other applications that support both 5 and 6. |
All right, both Qt versions are built now. |
305708d
to
76e1358
Compare
Result of 1 package marked as broken and skipped:
12 packages built:
|
It seems that it doesn't build on darwin: |
It builds, just the install script needs a little bit of tweaking. I can't really debug it since I don't have a suitable Darwin machine. |
In this case I think that you should either mark the darwin platform as broken, or simply remove the darwin support for now, until someone figures out how to fix it. |
Marked as broken on Darwin. |
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.
Tested and working as expected
diff --git a/pkgs/applications/networking/p2p/qbittorrent/default.nix b/pkgs/applications/networking/p2p/qbittorrent/default.nix
index 27330a97c1...8842ba0aed 100644
--- a/pkgs/applications/networking/p2p/qbittorrent/default.nix
+++ b/pkgs/applications/networking/p2p/qbittorrent/default.nix
@@ -75,7 +75,7 @@
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/{Applications,bin}
- cp -R src/${pname}.app $out/Applications
+ cp -R ${pname}.app $out/Applications
makeWrapper $out/{Applications/${pname}.app/Contents/MacOS,bin}/${pname}
'';
This change makes it work for me on aarch64-darwin. |
@mjm Nice! And the |
Indeed it is! I've been able to build all 3 variants (qt6, qt5, nox) with your latest changes. |
9a0d03d
to
b4fb61f
Compare
One last thing - you're using both
|
You can of course use the full |
Done with fully qualified calls. |
merge conflicts |
Very last thing (I promise!) - please squash the qbittorrent commits into one, so that this PR contains just 2: 1 regarding libtorrent-rasterbar and the 1 concerning qbittorrent. We cannot do selective squashing through GH. |
Why squash all into one? This will make the diff unreadable. |
As an example. the “switch to cmake” commit doesn’t make any sense on its own. Nobody is going to say “we need to revert *this* commit but leave everything else in”. So the changes related to qbittorrent should be one commit and then libtorrent another.
The diff will stay just as readable as it is today.
|
Other changes: - Refactor - Switch to CMake - Build with Qt6 by default and add a separate derivation for Qt5
I would expect all relevant commits to be reverted as well, if needed. They are related under one merge anyway, so one would just revert the merge. All of the following commits from future merges will depend on changes done here, so it's not like one could just revert one commit in general (especially the CMake one that changes the build system in use). Per-commit diffs are much easier to read and understand when their summary states one logical change. They are also useful when you actually encountered an issue and want to find its source (be it by reading the summaries of commits or by using That said, I don't care too much about protecting these opinions, so I squashed the commits anyway. |
so it’s not like one could just revert one commit in general (especially the CMake one that changes the build system in use).
And that’s exactly the point - the individual commits all touching the same file for what is essentially just a version bump are just rolled into a single commit.
Per-commit diffs are much easier to read and understand when their summary states one logical change. They are also useful when you actually encountered an issue and want to find its source (be it by reading the summaries of commits or by using git bisect).
Again, there is nothing special in this - it’s a very straight-forward version bump so the individual commits are not interesting. If you feel that anything in the code could benefit from additional information, adding a few comments would be very helpful.
That said, I don’t care too much about protecting these opinions, so I squashed the commits anyway.
Super.
:+1:
|
Description of changes
libtorrent-rasterbar
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)