1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

Merge pull request #7632 from NixOS/backport-7627-to-2.13-maintenance

[Backport 2.13-maintenance] Restore support for channel: URLs in fetchTarball
This commit is contained in:
Eelco Dolstra 2023-01-18 14:28:06 +01:00 committed by GitHub
commit 7cd4a8f73c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,9 @@ static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v
} else } else
url = state.forceStringNoCtx(*args[0], pos); url = state.forceStringNoCtx(*args[0], pos);
if (who == "fetchTarball")
url = evalSettings.resolvePseudoUrl(*url);
state.checkURI(*url); state.checkURI(*url);
if (name == "") if (name == "")