Skip to content

Commit

Permalink
lib.addPassthru: removed as scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Mar 3, 2018
1 parent 183f77f commit 7b2cf5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions lib/customisation.nix
Expand Up @@ -155,12 +155,6 @@ rec {
outPath = assert condition; drv.outPath;
};

/* Add attributes to each output of a derivation without changing
the derivation itself. */
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
result to ensure that there are no thunks kept alive to prevent
Expand Down
2 changes: 1 addition & 1 deletion lib/default.nix
Expand Up @@ -88,7 +88,7 @@ let
inherit (stringsWithDeps) textClosureList textClosureMap
noDepEntry fullDepEntry packEntry stringAfter;
inherit (customisation) overrideDerivation makeOverridable
callPackageWith callPackagesWith extendDerivation addPassthru
callPackageWith callPackagesWith extendDerivation
hydraJob makeScope;
inherit (meta) addMetaAttrs dontDistribute setName updateName
appendToName mapDerivationAttrset lowPrio lowPrioSet hiPrio
Expand Down
2 changes: 1 addition & 1 deletion nixos/doc/manual/release-notes/rl-1803.xml
Expand Up @@ -181,7 +181,7 @@ following incompatible changes:</para>
</listitem>
<listitem>
<para>
<literal>lib.addPassthru drv passthru</literal> is removed. Use <literal>lib.extendDerivation true passthru drv</literal> instead. <emphasis role="strong">TODO: actually remove it before branching 18.03 off.</emphasis>
<literal>lib.addPassthru drv passthru</literal> is removed. Use <literal>lib.extendDerivation true passthru drv</literal> instead.
</para>
</listitem>
<listitem>
Expand Down

0 comments on commit 7b2cf5b

Please sign in to comment.