mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 20:51:00 +01:00
Move writeStructuredAttrsShell out of ParsedDerivation class
This commit is contained in:
parent
27ce722638
commit
6f206549ba
5 changed files with 13 additions and 9 deletions
|
|
@ -1088,7 +1088,7 @@ void LocalDerivationGoal::writeStructuredAttrs()
|
|||
{
|
||||
if (auto structAttrsJson = parsedDrv->prepareStructuredAttrs(inputRewrites, worker.store, inputPaths)) {
|
||||
auto json = structAttrsJson.value();
|
||||
auto jsonSh = parsedDrv->writeStructuredAttrsShell(json);
|
||||
auto jsonSh = writeStructuredAttrsShell(json);
|
||||
|
||||
writeFile(tmpDir + "/.attrs.sh", rewriteStrings(jsonSh, inputRewrites));
|
||||
chownToBuilder(tmpDir + "/.attrs.sh");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue