lib.hasAttr: inherit from lib.attrsets

This commit is contained in:
Silvan Mosberger 2024-06-20 18:50:49 +02:00
parent 4bcc1d3450
commit c3b87461e7

View file

@ -66,7 +66,7 @@ let
inherit (builtins) addErrorContext inherit (builtins) addErrorContext
genericClosure getAttr genericClosure getAttr
hasAttr isAttrs isBool isInt isList isPath isString isAttrs isBool isInt isList isPath isString
pathExists readFile replaceStrings pathExists readFile replaceStrings
trace; 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
@ -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 listToAttrs intersectAttrs removeAttrs; mapCartesianProduct updateManyAttrsByPath listToAttrs hasAttr 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