mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
fix: correct fold argument order in get-libs function
Fix argument order for fold/foldr - the list element comes before the accumulator in foldr, not after. This was causing evaluation errors when using the library.
This commit is contained in:
@@ -51,7 +51,7 @@ let
|
||||
get-libs =
|
||||
attrs:
|
||||
fold
|
||||
(acc: name:
|
||||
(name: acc:
|
||||
let value = attrs.${name}; in
|
||||
if builtins.isAttrs (value.lib or null)
|
||||
then acc // { ${name} = value.lib; }
|
||||
|
||||
Reference in New Issue
Block a user