mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00: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
c43954ffac
commit
53b4bdcb8b
@ -2143,15 +2143,12 @@ void LocalDerivationGoal::runChild()
|
||||
_exit(1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
builder = drv->builder;
|
||||
args.push_back(std::string(baseNameOf(drv->builder)));
|
||||
#else
|
||||
if (!drv->isBuiltin()) {
|
||||
builder = drv->builder;
|
||||
args.push_back(std::string(baseNameOf(drv->builder)));
|
||||
}
|
||||
#endif
|
||||
|
||||
for (auto & i : drv->args)
|
||||
args.push_back(rewriteStrings(i, inputRewrites));
|
||||
|
Loading…
Reference in New Issue
Block a user