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:
parent
f1f9e38e94
commit
99c46f200c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue