aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src
diff options
context:
space:
mode:
authorTony Olagbaiye <me@fron.io>2020-10-16 00:35:24 +0100
committerThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2022-05-19 18:24:49 +0200
commit5b8c1deb18e0e6fc7a83fb8101cf5fc8dba38843 (patch)
treefab79fc57c3e461c03389d296760800e666018cb /doc/manual/src
parent78dc64ec1e34236d90c8869feebe30f596205cb2 (diff)
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>
Diffstat (limited to 'doc/manual/src')
-rw-r--r--doc/manual/src/release-notes/rl-next.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md
index efd893662..9f00893fd 100644
--- a/doc/manual/src/release-notes/rl-next.md
+++ b/doc/manual/src/release-notes/rl-next.md
@@ -24,3 +24,6 @@
Selecting derivation outputs using the attribute selection syntax
(e.g. `nixpkgs#glibc.dev`) no longer works.
+
+* `builtins.fetchTree` (and flake inputs) can now be used to fetch plain files
+ over the `http(s)` and `file` protocols in addition to directory tarballs.