Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 01d07b1e92c2
Choose a base ref
...
head repository: NixOS/nix
compare: 7a7ec2229834
Choose a head ref
  • 4 commits
  • 6 files changed
  • 2 contributors

Commits on Jan 13, 2019

  1. 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.
    shlevy committed Jan 13, 2019
    Copy the full SHA
    087be72 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2019

  1. Add builtins.getContext.

    This can be very helpful when debugging, as well as enabling complex
    black magic like surgically removing a single dependency from a
    string's context.
    shlevy committed Jan 14, 2019
    Copy the full SHA
    1d75729 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. Add builtins.appendContext.

    A partner of builtins.getContext, useful for the same reasons.
    shlevy committed Jan 31, 2019
    Copy the full SHA
    b30be6b View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2019

  1. Merge pull request #2628 from shlevy/context-introspection

    Context introspection
    edolstra committed Feb 12, 2019
    Copy the full SHA
    7a7ec22 View commit details
    Browse the repository at this point in the history