diff --git a/lib/filesystem.nix b/lib/filesystem.nix index 2bc7a5e23821c..e2ebce05fb66f 100644 --- a/lib/filesystem.nix +++ b/lib/filesystem.nix @@ -364,7 +364,7 @@ in if args ? newScope then # when `newScope` is provided, create a new scope when recursing into a directory (incl. the top one) f: { newScope, ... }@args: - lib.recurseIntoAttrset (lib.makeScope newScope (self: + lib.recurseIntoAttrs (lib.makeScope newScope (self: f (args // { inherit (self) callPackage newScope; })