perlPackages: add meta.mainProgram to many packages#172413
perlPackages: add meta.mainProgram to many packages#172413zimbatm merged 3 commits intoNixOS:masterfrom
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
SuperSandro2000
left a comment
There was a problem hiding this comment.
Please remove all changes where meta.mainProgram = pname.
|
@zakame, the additions of I used the script to generate the changes in this PR, then I manually reviewed the changes focusing on cases where the executable's name in the added Just mentioning all that in case you were concerned that I performed all these edits manually, which would be a lot more error prone. My goal, in creating this script, and using it to generate this PR (and past PRs, e.g., #172949, which collectively have added |
81bf7c8 to
da4814a
Compare
da4814a to
ba64b43
Compare
|
@SuperSandro2000 or @zakame, just a polite poke in case this has fallen through the cracks. |
|
@SuperSandro2000, anything I can do here to get this merged? |
|
I am not sure. I would appreciate @stigtsp 's feedback. |
Just meta information for nix run.
nope |
There was a problem hiding this comment.
Hi there, the mainProgram changes LGTM.
However, I've had a look at the diff and found a few unrelated changes in perl-packages.nix. Mainly:
- Indentation changes
- Changed order of some attributes
Changes to dependencies forWas confused by attribute order change 😕MacPasteboard- Additional meta (no biggie)
The indentation changes makes it a bit difficult to review what has actually changed, and could cause merge problems imho.
ba64b43 to
7ecfdc4
Compare
where the executable's name differs from the packages `name` or `pname`
where none of the executables match the package's `name` or `pname`, and one of the executables is the obvious `mainProgram`.
7ecfdc4 to
1a5f941
Compare
|
Alrighty I've,
@stigtsp, sorry if the indentation changes and the reshuffling of attributes made the commits harder to review. I have (what I think is generally a good) habit of making small fixes/improvements unrelated to the changes I want to make when I notice opportunities to do so. In many cases these changes are minor enough that they don't warrant a separate commit, or like in the case of reshuffling the attributes, I wouldn't bother to make those improvements if I had to put them all into a separate commit (since it's annoying to note them all down, and come back to them separately). So for changes like the shuffling of attributes, I usually lean towards including them, even if it makes the commit a little harder to review, since the alternative of in my case would be to just leave those changes off (which seems worse, at least to me, overall). However, I agree with you that the indentation changes in particular definitely deserved a separate commit since the indentation errors are easy to find on correct on their own, and they made reviewing the other changes a lot more annoying. |
|
Politely poking @stigtsp and/or @SuperSandro2000 |
Description of changes
Add
meta.mainProgramfor packages inperlPackageswhere the package provides a single executable and that executable's name differs from the package'snameorpname, for all packages available on{aarch64,x86_64}-darwinandx86_64-linux. Also addmeta.mainProgramfor packages with multiple executables where none of the executables match the package'snameorpname, and one of the executables is the obviousmainProgram.This will allow
nix runto work with 160 additional packages.If a package I touched was missing key
metaattributes like,licenseordescription, I added them when the information was easy to find. I also fixed some indentation issues, and made a few other minor formatting tweaks/fixes.Things done
sandbox = trueset 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/)nixos/doc/manual/md-to-db.shto update generated release notes