aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-05-31 10:38:04 +0200
committerGitHub <noreply@github.com>2021-05-31 10:38:04 +0200
commite8f585be70b22c11db5356f886049f432699eac3 (patch)
tree4950e8915ff53479424aeb34e73be6dab59a72e8 /src
parent1f390922d0e34382265205f6895c2b71c5a8e6f7 (diff)
parent4da9ec772c54f17ac04bbc5bcb75140d13a29500 (diff)
Merge pull request #4855 from timothyklim/master
Add .tar.zst support for TarballInputScheme
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/tarball.cc3
-rw-r--r--src/nix/flake.md4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libfetchers/tarball.cc b/src/libfetchers/tarball.cc
index b8d7d2c70..257465bae 100644
--- a/src/libfetchers/tarball.cc
+++ b/src/libfetchers/tarball.cc
@@ -178,7 +178,8 @@ struct TarballInputScheme : InputScheme
&& !hasSuffix(url.path, ".tar")
&& !hasSuffix(url.path, ".tar.gz")
&& !hasSuffix(url.path, ".tar.xz")
- && !hasSuffix(url.path, ".tar.bz2"))
+ && !hasSuffix(url.path, ".tar.bz2")
+ && !hasSuffix(url.path, ".tar.zst"))
return {};
Input input;
diff --git a/src/nix/flake.md b/src/nix/flake.md
index 9e936a049..3d273100b 100644
--- a/src/nix/flake.md
+++ b/src/nix/flake.md
@@ -186,8 +186,8 @@ Currently the `type` attribute can be one of the following:
attribute `url`.
In URL form, the schema must be `http://`, `https://` or `file://`
- URLs and the extension must be `.zip`, `.tar`, `.tar.gz`, `.tar.xz`
- or `.tar.bz2`.
+ URLs and the extension must be `.zip`, `.tar`, `.tar.gz`, `.tar.xz`,
+ `.tar.bz2` or `.tar.zst`.
* `github`: A more efficient way to fetch repositories from
GitHub. The following attributes are required: