Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkgs/stdenv/generic/make-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ let

# Turn a derivation into its outPath without a string context attached.
# See the comment at the usage site.
# We exclude Content Addressed derivations as they need to instantiate
# the store path after the derivation is built. Thus discarding
# context does not help in getting rid of the reference.
unsafeDerivationToUntrackedOutpath = drv:
if lib.isDerivation drv
if lib.isDerivation drv && (!drv.__contentAddressed or false)
then builtins.unsafeDiscardStringContext drv.outPath
else drv;

Expand Down