-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix flake refactor: avoid
with lib;
& use lib.optional*
Upstream Nixpkgs has been pushing the style of removing ``with lib;`` with the reasoning of clarity around where variables in scope come that hurt readability & static analysis[*]. While on the topic of ``lib``, introduce ``lib.optional`` & ``lib.optionalString`` in a few more places to tidy up the code while using common library patterns. .. [*] https://nix.dev/guides/best-practices#with-scopes Format: text/x-rst
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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