From 1f7af0634725920e8d99b0a9d7aadcbd5afe4fd0 Mon Sep 17 00:00:00 2001 From: anntnzrb Date: Wed, 8 Oct 2025 23:11:50 -0500 Subject: [PATCH] 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. --- snowfall-lib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowfall-lib/default.nix b/snowfall-lib/default.nix index b88d06a..c23c865 100644 --- a/snowfall-lib/default.nix +++ b/snowfall-lib/default.nix @@ -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; }