style: avoid usage of top-level "with lib;" #195
Labels
No labels
Bug
Docs
Feature request
Good for newcomers
Infra
Privacy
Refactoring or migration
Security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: pub-solar/infra#195
Loading…
Reference in a new issue
No description provided.
Delete branch "style-avoid-top-level-lib"
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?
See: https://github.com/NixOS/nixpkgs/issues/208242. This is not strictly top-level usage of
with lib;
, more similar to the still allowed usage ofmeta = with lib; { ... };
, but I'd like to get used to only getting required stuff into scope.As a rule of thumb, I used
inherit
when an attribute fromlib
was required more than three times.style: avoid usage of top-level "with lib";to style: avoid usage of top-level "with lib;"