diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-08 20:52:13 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-03-30 03:05:05 -0400 |
commit | 4c0d7da1837356047aabfed4661daf4307821b75 (patch) | |
tree | acc8f6a873c1bfa5f31f4beee022b7818fd56abb /lib/types.nix | |
parent | da79d1f01f6bd70833543cab5308d2439c429f9e (diff) | |
download | nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar.gz nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar.bz2 nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar.lz nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar.xz nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.tar.zst nixpkgs-4c0d7da1837356047aabfed4661daf4307821b75.zip |
Get rid of all `with { inherit... }` and just used `let inherit...`
The old forms presumably predates, or were made in ignorance of, `let inherit`. This way is better style as the scoping as more lexical, something which Nix can (or might already!) take advantage of.
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index 175cb7472bf..c834cc8e653 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -6,7 +6,7 @@ with import ./attrsets.nix; with import ./options.nix; with import ./trivial.nix; with import ./strings.nix; -with {inherit (import ./modules.nix) mergeDefinitions filterOverrides; }; +let inherit (import ./modules.nix) mergeDefinitions filterOverrides; in rec { |