mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
local-derivation-goal: Refactor
This works because the `builder` and `args` variables are only used in the non-builtin code path. Co-Authored-By: Théophane Hufschmitt <theophane.hufschmitt@tweag.io>
This commit is contained in:
parent
ae7a2ea741
commit
047ee50db2
1 changed files with 1 additions and 4 deletions
|
@ -2165,15 +2165,12 @@ void LocalDerivationGoal::runChild()
|
||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
builder = drv->builder;
|
|
||||||
args.push_back(std::string(baseNameOf(drv->builder)));
|
|
||||||
#else
|
|
||||||
if (!drv->isBuiltin()) {
|
if (!drv->isBuiltin()) {
|
||||||
builder = drv->builder;
|
builder = drv->builder;
|
||||||
args.push_back(std::string(baseNameOf(drv->builder)));
|
args.push_back(std::string(baseNameOf(drv->builder)));
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
for (auto & i : drv->args)
|
for (auto & i : drv->args)
|
||||||
args.push_back(rewriteStrings(i, inputRewrites));
|
args.push_back(rewriteStrings(i, inputRewrites));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue