-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
segger-jlink: init at 794a, nrfconnect: init at 4.3.0, nrf-command-line-tools: init at 10.23.2 #255185
Conversation
curlOpts = "--data accept_license_agreement=accepted"; | ||
}; | ||
|
||
qt4-bundled = stdenv.mkDerivation { |
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.
Why have this as a second derivation and not just as part of the main one?
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.
I wanted to ensure that QT4 libs (which are considered outdated) are not contained in /bin or /lib of a top-level package, in order to not pollute the global namespace. Am I mistaken? Should this be included?
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.
I think that makes sense
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nrfconnect-package-wrongly-removed/33261/2 |
I think this may be more suitable as an overlay at this point |
@StarGate01 Are you still working on this? I'm waiting for this package. |
@pinpox Yes I am , I'll implement the suggestions made by @SuperSandro2000 , however I don't really agree with @Mindavi - I would want to keep this as a package instead of a (somewhat cumbersome) overlay. |
9c074f6
to
76d0a3e
Compare
The J-Links are an industry standard, I believe that the package is definitely worth keeping. I don't think that leaving the bundled qt4 libraries as is, is that huge of a deal in this case. |
76d0a3e
to
40ace2f
Compare
I have implemented most of the suggestions by @SuperSandro2000 , and also updated all three packages to the latest versions. |
@StarGate01 I think it is useful to also provide desktop files for the graphical applications like |
@liarokapisv Good idea - is the list at https://github.com/liarokapisv/nixpkgs/blob/1f6683d53373179b761055239616c7e65a0a71fc/pkgs/by-name/jl/jlink-software-tools/package.nix#L95 the complete list of all apps which should have a dektop icon? |
40ace2f
to
37850ae
Compare
I think so. It was taken from the AUR package. I double-checked it but I could be missing something. |
Okay. Some entries like |
I manually went through all executables and this is what I got. GUIs:
CLI-only:
As a sidenote - the official deb package also makes various symlinks without the Exe suffix.
These do not have symlinks without the Exe suffix. |
37850ae
to
f795457
Compare
9519449
to
8b9d8aa
Compare
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
Signed-off-by: Maximilian Huber <[email protected]>
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.
Works for me 👍
8b9d8aa
to
9058bc4
Compare
Works for me, and I'm using it in a flake today with an overlay in a very janky and unfriendly way. Would really much prefer this in tree |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3395 |
Successfully created backport PR for |
Okay, there seems to be a need for this, and hydra won't help building this anyway. So I guess we can carry this package for now. But I'm not super thrilled about carrying such an old qt, it'll inevitably break at some point, with a compiler update or so. Anyhow, it won't burden hydra much. |
Maybe it would be possible to split the package? I suspect that most things depending on segger jlink only depends on the libraries and/or cli tools, not the GUI stuff. Some kind of |
QT also contains quite some libraries, it seems unlikely only the GUI parts were used and none of the non-gui parts. |
Interesting idea, we would have to figure out which of the tools actually use QT. This might also change with future updates. I am unsure if there is a usecase for a "reduced" JLink tool suite - even mundane things like a license popup use QT4. |
I’ve opened #353880 to revert this, per #214195 (comment). |
Description of changes
This PR re-adds some packages which were purged due to their usage of QT4 in #174634 :
segger-jlink
, and two packages which depend on it:nrfconnect
andnrf-command-line-tools
.Unfortunately the SEGGER J-Link tools are only distributed in binary form and have a hard requirement on (the bundled) QT4. I have packaged the bundled QT4 libs as a secondary package to not pollute the global namespace.
Supersedes #252137, #244637, #263487
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/
)