aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/show-derivation.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/show-derivation.cc b/src/nix/show-derivation.cc
index f9952e177..95898d566 100644
--- a/src/nix/show-derivation.cc
+++ b/src/nix/show-derivation.cc
@@ -78,6 +78,9 @@ struct CmdShowDerivation : InstallablesCommand
outputObj.attr("hashAlgo", dof.hash.printMethodAlgo());
outputObj.attr("hash", dof.hash.hash.to_string(Base16, false));
},
+ [&](DerivationOutputFloating dof) {
+ outputObj.attr("hashAlgo", makeFileIngestionPrefix(dof.method) + printHashType(dof.hashType));
+ },
}, output.second.output);
}
}