diff options
Diffstat (limited to 'nix/readTree')
-rw-r--r-- | nix/readTree/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/readTree/default.nix b/nix/readTree/default.nix index 2746d8c9076d..c3955c6c884e 100644 --- a/nix/readTree/default.nix +++ b/nix/readTree/default.nix @@ -64,7 +64,7 @@ let in if pathType != "lambda" then builtins.throw "readTree: trying to import ${toString path}, but it’s a ${pathType}, you need to make it a function like { depot, pkgs, ... }" - else importedFile (filter (argsWithPath args parts) parts); + else importedFile (filter parts (argsWithPath args parts)); nixFileName = file: let res = match "(.*)\\.nix" file; @@ -129,7 +129,7 @@ in { __functor = _: { path , args - , filter ? (x: _parts: x) + , filter ? (_parts: x: x) , scopedArgs ? {} }: readTree { inherit args scopedArgs; |