-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
treewide: remove multiArch=false
and wrong usage of extraPkgs
#279260
Conversation
f8b07b4
to
08d4734
Compare
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/3593 |
fyi @Atemu |
This appears to change eval on many of the touched packages, what's the difference? |
08d4734
to
af262d9
Compare
Sorry for the late response, but I don't know. |
Please investigate that, I do not feel comfortable merging this otherwise. |
Alright, I found the cause.
By removing the latter, these packages are listed only once. Example with Zettlr (I took the pkgs from the derivations and prettified the JSON).
By using a text comparison tool (or a duplicate counter), you can see that "After PR" only removes duplicates. I only tested Zettlr, but I suppose it's the same for the others. |
Could you squash this into one commit? It's a tree-wide change, so that's one logical step. |
af262d9
to
496e514
Compare
Result of 13 packages built:
|
There's a conflict now. Could you also add a commit message that explains the background of the change? The contributor's manual has a section on that. It should also say something to the effect of Other than that, this LGTM. |
So, I just noticed that there are other packages that do What do you say? |
35 packages that either do { appimageTools, pandoc }:
appimageTools.wrapType2 {
# Haa, the joys of being bamboozled by the `with;` keyword!
# I can say that I've had experience with that, I'm definitively not still angry about the time I wasted for #248898.
extraPkgs = pkgs: with pkgs; [ pandoc ];
} Maybe fixing this should be a separate PR. |
Certainly a separate commit. It fits the theme of outdated pattern/convention cleanup surrounding buildFHSEnv of this PR and is related, so I wouldn't mind having it in here.
Oh man, time for NixOS/rfcs#110... |
496e514
to
3f21cfe
Compare
multiArch=false
and wrong usage of extraPkgs
11565d5
to
9f2f6a6
Compare
So, there are 5 packages that use Should I convert all the usages of |
I'm waiting for comments before proceeding further. |
|
9f2f6a6
to
90f628b
Compare
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 we're looking at remnants of previous iterations of this interface where there was support for multiple versions of the appimage format. These days, everything just uses wrapType2 IIRC.
Appimage support in general needs some cleanup.
This LGTM.
90f628b
to
9360941
Compare
9360941
to
32ac7f8
Compare
Cleanup after the work of NixOS#240860. Also preventing new packages to copy from outdated ones.
Sane default in preparation for the next commit.
Mostly removes unnecessary use of `extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;` This caused some packages to be listed twice. Also, fix some styling, and accidental use of top-level packages (sometimes due to the `with;` keyword, e.g. on `beeper`). Remove inclusions of `bash`, since `bashInteractive` is already present by default.
32ac7f8
to
6e465f4
Compare
Thank you! |
Description of changes
Cleanup after the work of #240860.
Motivation: prevent new packages to copy from outdated examples.
Didn't test.
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/
)Add a 👍 reaction to pull requests you find important.