git.iko.soy/typeable/nixpkgs
on master help sign in
lib: deprecate `addPassthru`
commit41df99400149a6747b31c8ed1049f556c9c0e0ed authorJan Malakhovski <oxij@oxij.org> dateSun 14 Jan 2018, 19:54 (9 years ago) parent85cd22c
1 file changed+2−1
lib/customisation.nix+2−1
lib/customisation.nix+2−1
@@ -157,7 +157,8 @@ rec {
157157
158158 /* Add attributes to each output of a derivation without changing
159159 the derivation itself. */
160− addPassthru = extendDerivation true;
160+ addPassthru = lib.warn "`addPassthru` is deprecated, replace with `extendDerivation true`"
161+ (extendDerivation true);
161162
162163 /* Strip a derivation of all non-essential attributes, returning
163164 only those needed by hydra-eval-jobs. Also strictly evaluate the