From 597f62d78254c6cb4bf4f4e15a4aa8f001047d89 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 20 Jun 2024 18:32:38 +0200 Subject: lib.listToAttrs: inherit from lib.attrsets --- lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 911e4f5f71d06..8c014cd0d9e56 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -67,7 +67,7 @@ let inherit (builtins) add addErrorContext deepSeq elem elemAt genericClosure getAttr hasAttr isAttrs isBool isInt isList isPath isString - lessThan listToAttrs pathExists readFile replaceStrings seq + lessThan pathExists readFile replaceStrings seq sub trace; inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max @@ -87,7 +87,7 @@ let recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput getBin getLib getDev getMan chooseDevOutputs zipWithNames zip recurseIntoAttrs dontRecurseIntoAttrs cartesianProduct cartesianProductOfSets - mapCartesianProduct updateManyAttrsByPath intersectAttrs removeAttrs; + mapCartesianProduct updateManyAttrsByPath listToAttrs intersectAttrs removeAttrs; inherit (self.lists) singleton forEach map foldr fold foldl foldl' imap0 imap1 filter ifilter0 concatMap flatten remove findSingle findFirst any all count optional optionals toList range replicate partition zipListsWith zipLists -- cgit 1.4.1