lix/src
Eelco Dolstra 462421d345 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 (c169ea5904).
2020-04-07 09:03:14 +02:00
..
build-remote Remove global -I flags 2020-03-30 15:30:19 +02:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
libexpr Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
libfetchers Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
libmain Remove global -I flags 2020-03-30 15:30:19 +02:00
libstore Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
libutil Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
nix Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
nix-build Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-channel Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
nix-collect-garbage Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-copy-closure Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-daemon Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-env nix-env: Refuse to operate on a new-style profile 2020-04-03 20:14:34 +02:00
nix-instantiate Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-prefetch-url Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-store Remove global -I flags 2020-03-30 15:30:19 +02:00
resolve-system-dependencies Fix macOS build 2020-03-30 17:00:40 +02:00