From 41df99400149a6747b31c8ed1049f556c9c0e0ed Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 14 Jan 2018 19:54:47 +0000 Subject: [PATCH] lib: deprecate `addPassthru` --- lib/customisation.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index 32bc1b34683f..fb78335ea1c2 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -157,7 +157,8 @@ rec { /* Add attributes to each output of a derivation without changing the derivation itself. */ - addPassthru = extendDerivation true; + addPassthru = lib.warn "`addPassthru` is deprecated, replace with `extendDerivation true`" + (extendDerivation true); /* Strip a derivation of all non-essential attributes, returning only those needed by hydra-eval-jobs. Also strictly evaluate the