nix-super/src/nix
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
..
add-to-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
build.cc Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
cat.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
command.cc Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
command.hh Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
copy.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
doctor.cc nix doctor: Fix typo 2019-12-05 20:40:52 +01:00
dump-path.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
edit.cc nix edit: Support non-derivation attributes 2020-03-24 14:06:47 +01:00
eval.cc nix edit: Support non-derivation attributes 2020-03-24 14:06:47 +01:00
hash.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
installables.cc Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
installables.hh Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
legacy.cc Start of new Nix command-line interface 2016-02-09 21:28:29 +01:00
legacy.hh Fix Darwin build 2016-03-15 12:11:27 +01:00
local.mk Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
log.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
ls.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
main.cc Fix --refresh with --no-net 2020-03-24 14:26:23 +01:00
make-content-addressable.cc nix make-content-addressable: Add --json flag 2019-12-18 17:39:02 +01:00
optimise-store.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
path-info.cc nix path-info --json: Print hash in SRI format 2020-03-24 14:26:23 +01:00
ping-store.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
progress-bar.cc Disable the progress bar if $TERM == dumb or unset 2020-02-18 17:51:18 +01:00
progress-bar.hh nix: Add --print-build-logs flag 2019-05-15 17:33:56 +02:00
repl.cc nix repl: Put EvalState on the heap 2020-03-19 13:52:28 +01:00
run.cc Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
search.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
shell.cc nix shell -> nix dev-shell 2020-03-31 13:45:28 +02:00
show-config.cc Make subcommand construction in MultiCommand lazy 2019-12-05 20:19:26 +01:00
show-derivation.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
sigs.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
upgrade-nix.cc findAlongAttrPath(): Return position 2020-03-24 14:06:47 +01:00
verify.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
why-depends.cc Pretty-print 'nix why-depends' / 'nix-store -q --tree' output 2020-03-24 14:26:23 +01:00