weakCallPackage: don't drop unexpected args
Make explicit argument name mistakes easier to catch, by not dropping them.
commit14c0106e56f326a89b41aca8b242a02a38a3c465
authorKosyrev Serge <serge.kosyrev@iohk.io>
dateThu 16 May 2019, 17:53 (7 years ago)
parent0cc3670
lib/default.nix+2−2
@@ -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}