buildPerlPackage: don't mess with pname and phase out use of name#176792
Merged
SuperSandro2000 merged 2 commits intoNixOS:stagingfrom Jun 23, 2022
Merged
buildPerlPackage: don't mess with pname and phase out use of name#176792SuperSandro2000 merged 2 commits intoNixOS:stagingfrom
pname and phase out use of name#176792SuperSandro2000 merged 2 commits intoNixOS:stagingfrom
Conversation
This reverts commit ff7b216.
Currently `buildPerlPackage` prefixes the Perl version to the package's `pname`, which results in `nix run` not being able to work for any packages build with it out of the box. This commit corrects that and phases out the ability to set `name` directly, as well as refactors the code to not require `cleanedAttrs`.
13 tasks
Member
|
Thanks for starting this! Lets wait what stigtsp has to say on this. |
Member
Author
|
To test this change I ran: nix build -f . perlPackages.ackBuilt for me without issue on |
zimbatm
reviewed
Jun 8, 2022
Member
Author
|
Politely poking @stigtsp |
zimbatm
approved these changes
Jun 21, 2022
Member
|
here goes nothing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Currently
buildPerlPackageprefixes the Perl version to the package'spname, which results innix runnot being able to work for any packages build with it out of the box. This commit corrects that and phases out the ability to setnamedirectly, as well as refactors the code to not requirecleanedAttrs.I don't have any real experience with the Perl echo system in
nixpkgsso careful review from someone who does is essential here.This PR also requires essentially a full rebuild of
nixpkgsso if there are any other changes folks have been wanting to make to how perl packaging works innixpkgs, I'd be happy to add those onto the PR.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