mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Restore subdir support in registries
Hacky...
This commit is contained in:
parent
890df325c7
commit
d068f9ffff
6 changed files with 60 additions and 31 deletions
|
@ -36,7 +36,7 @@ static void prim_fetchTree(EvalState & state, const Pos & pos, Value * * args, V
|
|||
input = fetchers::inputFromURL(state.coerceToString(pos, *args[0], context, false, false));
|
||||
|
||||
if (!evalSettings.pureEval && !input->isDirect())
|
||||
input = lookupInRegistries(state.store, input);
|
||||
input = lookupInRegistries(state.store, input).first;
|
||||
|
||||
if (evalSettings.pureEval && !input->isImmutable())
|
||||
throw Error("in pure evaluation mode, 'fetchTree' requires an immutable input");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue