mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
Fix off-by-one
This commit is contained in:
parent
93e4f01ee3
commit
ea525a261f
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ static void prim_scopedImport(EvalState & state, const Pos & pos, Value * * args
|
|||
if (isStorePath(path) && store->isValidPath(path) && isDerivation(path)) {
|
||||
Derivation drv = readDerivation(path);
|
||||
Value & w = *state.allocValue();
|
||||
state.mkAttrs(w, 1 + drv.outputs.size());
|
||||
state.mkAttrs(w, 2 + drv.outputs.size());
|
||||
mkString(*state.allocAttr(w, state.sDrvPath), path, singleton<PathSet>("=" + path));
|
||||
state.mkList(*state.allocAttr(w, state.symbols.create("outputs")), drv.outputs.size());
|
||||
unsigned int outputs_index = 0;
|
||||
|
|
Loading…
Reference in a new issue