lix/src
Tony Olagbaiye 5b8c1deb18 fetchTree: Allow fetching plain files
Add a new `file` fetcher type, which will fetch a plain file over
http(s), or from the local file.

Because plain `http(s)://` or `file://` urls can already correspond to
`tarball` inputs (if the path ends-up with a know archive extension),
the URL parsing logic is a bit convuluted in that:

- {http,https,file}:// urls will be interpreted as either a tarball or a
  file input, depending on the extensions of the path part (so
  `https://foo.com/bar` will be a `file` input and
  `https://foo.com/bar.tar.gz` as a `tarball` input)
- `file+{something}://` urls will be interpreted as `file` urls (with
  the `file+` part removed)
- `tarball+{something}://` urls will be interpreted as `tarball` urls (with
  the `tarball+` part removed)

Fix #3785

Co-Authored-By: Tony Olagbaiye <me@fron.io>
2022-05-19 18:24:49 +02:00
..
build-remote Generalize DerivationType in preparation for impure derivations 2022-03-18 14:59:56 +00:00
libcmd resolve redundant priority passing, wrap NixInt in eval-cache variant 2022-05-16 15:17:35 +02:00
libexpr Merge pull request #6544 from ncfavier/getFlake-no-write-lock-file 2022-05-18 16:41:13 +02:00
libfetchers fetchTree: Allow fetching plain files 2022-05-19 18:24:49 +02:00
libmain Avoid fmt when constructor already does it 2022-04-19 01:44:11 +00:00
libstore change priority conflict message 2022-05-16 16:16:06 +02:00
libutil fetchTree: Allow fetching plain files 2022-05-19 18:24:49 +02:00
nix fetchTree: Allow fetching plain files 2022-05-19 18:24:49 +02:00
nix-build Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Deduplicate the Store downcasting with a template 2022-03-11 13:32:33 +00:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
nix-instantiate store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
nix-store Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00