about summary refs log tree commit diff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2019-01-13T15·33-0500
committerShea Levy <shea@shealevy.com>2019-01-13T16·29-0500
commit087be7281a02a6d0e548ae56b910771837023d21 (patch)
tree526f8ade1a0649e31496b82e8ea2493fec0f7446 /src/libexpr/eval.hh
parent4ae6e849015fb269414c1544e815aba75085cf7b (diff)
Treat plain derivation paths in context as normal paths.
Previously, plain derivation paths in the string context (e.g. those
that arose from builtins.storePath on a drv file, not those that arose
from accessing .drvPath of a derivation) were treated somewhat like
derivaiton paths derived from .drvPath, except their dependencies
weren't recursively added to the input set. With this change, such
plain derivation paths are simply treated as paths and added to the
source inputs set accordingly, simplifying context handling code and
removing the inconsistency. If drvPath-like behavior is desired, the
.drv file can be imported and then .drvPath can be accessed.

This is a backwards-incompatibility, but storePath is never used on
drv files within nixpkgs and almost never used elsewhere.
Diffstat (limited to 'src/libexpr/eval.hh')
0 files changed, 0 insertions, 0 deletions