mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Make Headers an optional argument
This commit is contained in:
parent
de86abbf3f
commit
5999978a05
9 changed files with 23 additions and 25 deletions
|
@ -76,7 +76,7 @@ Path lookupFileArg(EvalState & state, string s)
|
|||
if (isUri(s)) {
|
||||
return state.store->toRealPath(
|
||||
fetchers::downloadTarball(
|
||||
state.store, resolveUri(s), Headers {}, "source", false).first.storePath);
|
||||
state.store, resolveUri(s), "source", false).first.storePath);
|
||||
} else if (s.size() > 2 && s.at(0) == '<' && s.at(s.size() - 1) == '>') {
|
||||
Path p = s.substr(1, s.size() - 2);
|
||||
return state.findFile(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue