3
0
Fork 0
forked from mirrors/nixpkgs

Forgot to make composedArgsAndFun support function overrides in addition to attrSet-merging ones.

svn path=/nixpkgs/trunk/; revision=12627
This commit is contained in:
Michael Raskin 2008-08-14 22:12:50 +00:00
parent f1f9e38e94
commit 99c46f200c

View file

@ -32,7 +32,11 @@ rec {
else (innerComposedArgs f (y x))));
composedArgs = f: innerComposedArgs f {};
sumTwoArgs = f: x: y: (f (x // y));
sumTwoArgs = f: x: y:
if builtins.isAttrs y then
(f (x // y))
else
(f (y x));
composedArgsAndFun = f : x : (f x) // {
meta = {
function = composedArgsAndFun (sumTwoArgs f x);