diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/attrsets.nix | 4 | ||||
-rw-r--r-- | lib/types.nix | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index c1bd764c70dcb..f9e6b7495fc58 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -1,12 +1,12 @@ # Operations on attribute sets. -with { +let inherit (builtins) head tail length; inherit (import ./trivial.nix) or; inherit (import ./default.nix) fold; inherit (import ./strings.nix) concatStringsSep; inherit (import ./lists.nix) concatMap concatLists all deepSeqList; -}; +in rec { inherit (builtins) attrNames listToAttrs hasAttr isAttrs getAttr; diff --git a/lib/types.nix b/lib/types.nix index 175cb7472bf68..c834cc8e6534a 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 { |