diff options
author | Jan Malakhovski <oxij@oxij.org> | 2017-12-26 08:40:04 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-01-14 13:24:30 +0000 |
commit | 8606dd855656e3785df0d24ba8d3e226fe03f597 (patch) | |
tree | 75842fe30b61d37a5286c0a85a55d30da0b96b36 /lib/customisation.nix | |
parent | fac3d49e486cbca4306f991ed49687ac1230ed89 (diff) |
lib: change the order of arguments of `addPassthru`
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r-- | lib/customisation.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index 84f7783a6aa7..08020456e7c8 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -36,7 +36,7 @@ rec { overrideDerivation = drv: f: let newDrv = derivation (drv.drvAttrs // (f drv)); - in addPassthru newDrv ( + in lib.flip addPassthru newDrv ( { meta = drv.meta or {}; passthru = if drv ? passthru then drv.passthru else {}; } @@ -157,7 +157,7 @@ rec { /* Add attributes to each output of a derivation without changing the derivation itself. */ - addPassthru = drv: passthru: extendDerivation true passthru drv; + addPassthru = extendDerivation true; /* Strip a derivation of all non-essential attributes, returning only those needed by hydra-eval-jobs. Also strictly evaluate the |