diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-01-24 23:06:12 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-01-24 23:06:12 +0000 |
commit | ce1d740fa6621818b9d9660aeef443b0758ae486 (patch) | |
tree | 81f48424cd6a7a7cfb8676e121e4cc5089ce221d /lib | |
parent | 0e7a5207ec9e34adb77e5c9a596be22d6120103e (diff) | |
download | nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar.gz nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar.bz2 nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar.lz nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar.xz nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.tar.zst nixpkgs-ce1d740fa6621818b9d9660aeef443b0758ae486.zip |
addPassthru: fix argument order
addPassthru became unused in #33057, but its signature was changed at the same time. This commit restores the original signature and updates the warning and the changelog.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/customisation.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index fb78335ea1c..3988f4e9b69 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -157,8 +157,9 @@ rec { /* Add attributes to each output of a derivation without changing the derivation itself. */ - addPassthru = lib.warn "`addPassthru` is deprecated, replace with `extendDerivation true`" - (extendDerivation true); + addPassthru = + lib.warn "`addPassthru drv passthru` is deprecated, replace with `extendDerivation true passthru drv`" + (drv: passthru: extendDerivation true passthru drv); /* Strip a derivation of all non-essential attributes, returning only those needed by hydra-eval-jobs. Also strictly evaluate the |