aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/path.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-08-01 16:07:20 +0200
committerEelco Dolstra <edolstra@gmail.com>2023-08-01 16:07:20 +0200
commitd9e7758f4756c10592407b3fe99dc253ef56eac9 (patch)
tree960315c30ed9cbc7dd182c391aba64f212dba183 /src/libfetchers/path.cc
parentdcdd5fed74445c526a361202a9e6c8459a38726b (diff)
Don't require .tar/.zip extension for tarball flakerefs
Special-casing the file name is rather ugly, so we shouldn't do that. So now any {file,http,https} URL is handled by TarballInputScheme, except for non-flake inputs (i.e. inputs that have the attribute `flake = false`).
Diffstat (limited to 'src/libfetchers/path.cc')
-rw-r--r--src/libfetchers/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/path.cc b/src/libfetchers/path.cc
index 61541e69d..01f1be978 100644
--- a/src/libfetchers/path.cc
+++ b/src/libfetchers/path.cc
@@ -6,7 +6,7 @@ namespace nix::fetchers {
struct PathInputScheme : InputScheme
{
- std::optional<Input> inputFromURL(const ParsedURL & url) const override
+ std::optional<Input> inputFromURL(const ParsedURL & url, bool requireTree) const override
{
if (url.scheme != "path") return {};