aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-01-18 12:56:36 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-01-18 12:57:03 +0100
commit01f268322a71de11de8eccd2bfa3130c2d4e9c10 (patch)
tree733ddd5ab6a43b14b14e9b4e6ae6c0096664fceb /src/libexpr/primops
parentd385c13202f1603d626bb4af8ebea6c18155087d (diff)
Restore support for channel: URLs in fetchTarball
Fixes #7625.
Diffstat (limited to 'src/libexpr/primops')
-rw-r--r--src/libexpr/primops/fetchTree.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc
index 680446787..fb392a6e8 100644
--- a/src/libexpr/primops/fetchTree.cc
+++ b/src/libexpr/primops/fetchTree.cc
@@ -220,6 +220,9 @@ static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v
} else
url = state.forceStringNoCtx(*args[0], pos);
+ if (who == "fetchTarball")
+ url = evalSettings.resolvePseudoUrl(*url);
+
state.checkURI(*url);
if (name == "")