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:
anntnzrb
2025-10-08 23:11:50 -05:00
parent 47c33cfae1
commit 1f7af06347

View File

@@ -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; }