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: 00e1400eb741
Choose a base ref
...
head repository: NixOS/nix
compare: 12f9379123eb
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Apr 2, 2020

  1. Add 'path' fetcher

    This fetchers copies a plain directory (i.e. not a Git/Mercurial
    repository) to the store (or does nothing if the path is already a
    store path).
    
    One use case is to pin the 'nixpkgs' flake used to build the current
    NixOS system, and prevent it from being garbage-collected, via a
    system registry entry like this:
    
      {
          "from": {
              "id": "nixpkgs",
              "type": "indirect"
          },
          "to": {
              "type": "path",
              "path": "/nix/store/rralhl3wj4rdwzjn16g7d93mibvlr521-source",
              "lastModified": 1585388205,
              "rev": "b0c285807d6a9f1b7562ec417c24fa1a30ecc31a"
          },
          "exact": true
      }
    
    Note the fake "lastModified" and "rev" attributes that ensure that the
    flake gives the same evaluation results as the corresponding
    Git/GitHub inputs.
    edolstra committed Apr 2, 2020
    Copy the full SHA
    12f9379 View commit details
    Browse the repository at this point in the history