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: 5512bdd06df2
Choose a base ref
...
head repository: NixOS/nix
compare: 0cb81acdcc25
Choose a head ref
  • 1 commit
  • 35 files changed
  • 1 contributor

Commits on Mar 30, 2020

  1. Backport libfetchers from the flakes branch

    This provides a pluggable mechanism for defining new fetchers. It adds
    a builtin function 'fetchTree' that generalizes existing fetchers like
    'fetchGit', 'fetchMercurial' and 'fetchTarball'. 'fetchTree' takes a
    set of attributes, e.g.
    
      fetchTree {
        type = "git";
        url = "https://example.org/repo.git";
        ref = "some-branch";
        rev = "abcdef...";
      }
    
    The existing fetchers are just wrappers around this. Note that the
    input attributes to fetchTree are the same as flake input
    specifications and flake lock file entries.
    
    All fetchers share a common cache stored in
    ~/.cache/nix/fetcher-cache-v1.sqlite. This replaces the ad hoc caching
    mechanisms in fetchGit and download.cc (e.g. ~/.cache/nix/{tarballs,git-revs*}).
    
    This also adds support for Git worktrees (c169ea5).
    edolstra committed Mar 30, 2020
    Copy the full SHA
    0cb81ac View commit details
    Browse the repository at this point in the history