lib.listToAttrs: inherit from lib.attrsets

This commit is contained in:
Silvan Mosberger 2024-06-20 18:32:38 +02:00
parent 00972297be
commit 597f62d782

View file

@ -67,7 +67,7 @@ let
inherit (builtins) add addErrorContext inherit (builtins) add addErrorContext
deepSeq elem elemAt genericClosure getAttr deepSeq elem elemAt genericClosure getAttr
hasAttr isAttrs isBool isInt isList isPath isString hasAttr isAttrs isBool isInt isList isPath isString
lessThan listToAttrs pathExists readFile replaceStrings seq lessThan pathExists readFile replaceStrings seq
sub trace; sub trace;
inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor
bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max
@ -87,7 +87,7 @@ let
recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput
getBin getLib getDev getMan chooseDevOutputs zipWithNames zip getBin getLib getDev getMan chooseDevOutputs zipWithNames zip
recurseIntoAttrs dontRecurseIntoAttrs cartesianProduct cartesianProductOfSets 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 inherit (self.lists) singleton forEach map foldr fold foldl foldl' imap0 imap1
filter ifilter0 concatMap flatten remove findSingle findFirst any all count filter ifilter0 concatMap flatten remove findSingle findFirst any all count
optional optionals toList range replicate partition zipListsWith zipLists optional optionals toList range replicate partition zipListsWith zipLists