mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
462421d345
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 (
|
||
---|---|---|
.. | ||
add-to-store.cc | ||
build.cc | ||
cat.cc | ||
command.cc | ||
command.hh | ||
copy.cc | ||
doctor.cc | ||
dump-path.cc | ||
edit.cc | ||
eval.cc | ||
hash.cc | ||
installables.cc | ||
installables.hh | ||
legacy.cc | ||
legacy.hh | ||
local.mk | ||
log.cc | ||
ls.cc | ||
main.cc | ||
make-content-addressable.cc | ||
optimise-store.cc | ||
path-info.cc | ||
ping-store.cc | ||
progress-bar.cc | ||
progress-bar.hh | ||
repl.cc | ||
run.cc | ||
search.cc | ||
shell.cc | ||
show-config.cc | ||
show-derivation.cc | ||
sigs.cc | ||
upgrade-nix.cc | ||
verify.cc | ||
why-depends.cc |