Skip to content

Commit 14c0106

Browse files
deepfireangerman
authored andcommitted
weakCallPackage: don't drop unexpected args
Make explicit argument name mistakes easier to catch, by not dropping them.
1 parent 0cc3670 commit 14c0106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ with haskellLib;
7878
#
7979
weakCallPackage = scope: f: args:
8080
let f' = if lib.isFunction f then f else import f;
81-
args' = scope // args;
82-
in f' (builtins.intersectAttrs (builtins.functionArgs f') args');
81+
args' = (builtins.intersectAttrs (builtins.functionArgs f') scope) // args;
82+
in f' args';
8383
}

0 commit comments

Comments
 (0)