perlPackages: add default meta.mainProgram#176398
Conversation
Because perl packages are prefixed with the perl version, it means that the `lib.getExe` heuristic will never point to the binary name. So we provide the meta.mainProgram that overrides that, using the original pname or parsed name. It's not perfect but should yield better results already.
|
Thanks for letting me know. I removed the individual package fixes to keep this PR focused on the default mainProgram change. I will merge this so the other PR can be rebased on top, I believe he will be able to remove a bunch of overrides. |
|
This will definitely get This change is explicitly setting the I don't have any real experience with |
|
Sounds good, if you do that change then mine can be reverted. I'm not a perl maintainer so I was only looking for a minimal change. |
This reverts commit ff7b216.
Description of changes
Because perl packages are prefixed with the perl version, it means that
the
lib.getExeheuristic will never point to the binary name. So weprovide the meta.mainProgram that overrides that, using the original
pname or parsed name. It's not perfect but should yield better results
already.
If you're looking for an example:
nix run .#pgbadgerused to be brokenThings 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