about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2018-01-25 10:37:36 +0000
committerGitHub <noreply@github.com>2018-01-25 10:37:36 +0000
commit3989b33e74227be641136d80f91f294e0364e4b0 (patch)
tree8edd864e94b122fe30bdcd1e68a318766a9afca8 /lib
parent7a2d35d9db9dcbeeaab9015ae9ce013644321bbe (diff)
parentce1d740fa6621818b9d9660aeef443b0758ae486 (diff)
downloadnixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar.gz
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar.bz2
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar.lz
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar.xz
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.tar.zst
nixlib-3989b33e74227be641136d80f91f294e0364e4b0.zip
Merge pull request #34245 from orivej/addPassthru
addPassthru: fix argument order
Diffstat (limited to 'lib')
-rw-r--r--lib/customisation.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix
index fb78335ea1c2..3988f4e9b690 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