Skip to content
Snippets Groups Projects
  • Shea Levy's avatar
    087be728
    Treat plain derivation paths in context as normal paths. · 087be728
    Shea Levy authored
    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.
    087be728
    History
    Treat plain derivation paths in context as normal paths.
    Shea Levy authored
    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.