aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-06-22 20:37:25 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2021-06-22 21:14:20 +0200
commit6f206549ba02c6f9bdbf9707bba9193a1d82e822 (patch)
treef46e941dae74236c0303eef9fcd386e06dff4e17 /src/nix-build
parent27ce722638eeabb987bc9b4a1234c2818c5bf401 (diff)
Move `writeStructuredAttrsShell` out of `ParsedDerivation` class
Diffstat (limited to 'src/nix-build')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index f67776083..459876465 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -446,7 +446,7 @@ static void main_nix_build(int argc, char * * argv)
if (auto structAttrs = parsedDrv.prepareStructuredAttrs(std::nullopt, *store, inputs)) {
auto json = structAttrs.value();
- structuredAttrsRC = parsedDrv.writeStructuredAttrsShell(json);
+ structuredAttrsRC = writeStructuredAttrsShell(json);
auto attrsJSON = (Path) tmpDir + "/.attrs.json";
writeFile(attrsJSON, json.dump());