3
0
Fork 0
forked from mirrors/nixpkgs

Make it possible to call 'callPackage function'

svn path=/nixpkgs/trunk/; revision=25657
This commit is contained in:
Yury G. Kudryashov 2011-01-21 08:25:06 +00:00
parent 08abc174f6
commit e76aee9d2f

View file

@ -89,7 +89,7 @@ rec {
};
*/
callPackageWith = autoArgs: fn: args:
let f = import fn; in
let f = if builtins.isFunction fn then fn else import fn; in
makeOverridable f ((builtins.intersectAttrs (builtins.functionArgs f) autoArgs) // args);
}