Skip to content

Commit

Permalink
Merge pull request #7632 from NixOS/backport-7627-to-2.13-maintenance
Browse files Browse the repository at this point in the history
[Backport 2.13-maintenance] Restore support for channel: URLs in fetchTarball
  • Loading branch information
edolstra committed Jan 18, 2023
2 parents f60d45d + fda0d52 commit 7cd4a8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libexpr/primops/fetchTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "")
Expand Down

0 comments on commit 7cd4a8f

Please sign in to comment.