aboutsummaryrefslogtreecommitdiff
path: root/src/nix/show-derivation.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-04-19 22:39:57 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-04-19 22:39:57 +0000
commit08b8657978de0d56064aad9c3e925b64d91b28a2 (patch)
tree450624684f97857bbedd193a0e3e09ed190f9138 /src/nix/show-derivation.cc
parent8f9990a4072d4ed31cdc080840364758b4bc6317 (diff)
parent55caef36ed1cee2e924c82cf49b3ceb17bdde910 (diff)
Merge branch 'path-info' into ca-drv-exotic
Diffstat (limited to 'src/nix/show-derivation.cc')
-rw-r--r--src/nix/show-derivation.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/show-derivation.cc b/src/nix/show-derivation.cc
index 3dfc4547b..331da003f 100644
--- a/src/nix/show-derivation.cc
+++ b/src/nix/show-derivation.cc
@@ -78,6 +78,10 @@ struct CmdShowDerivation : InstallablesCommand
outputObj.attr("hashAlgo", makeContentAddressingPrefix(dof.method) + printHashType(dof.hashType));
},
[&](const DerivationOutput::Deferred &) {},
+ [&](const DerivationOutput::Impure & doi) {
+ outputObj.attr("hashAlgo", makeContentAddressingPrefix(doi.method) + printHashType(doi.hashType));
+ outputObj.attr("impure", true);
+ },
}, output.raw());
}
}