pass nixpkgs directly in forAllSystems, fix typos #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/templates#2
Loading…
Reference in a new issue
No description provided.
Delete branch "pass-pkgs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Giving
system
directly as an argument is more annoying in most situations than not - a good example being how the formatter output is set. Passingnixpkgs.legacyPackages.${system}
directly allows for more concise access to what callers usually want (pkgs
), and can also help avoid boilerplate in other situations (i.e., destructuringpkgs
into{lib, pkgs, system, ...}
instead ofsystem: let pkgs = nixpkgs.legacyPackages.${system}; inherit (pkgs) lib; in ...
)Let's do it, thanks Getchoo!