diff options
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/show-derivation.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/show-derivation.cc b/src/nix/show-derivation.cc index 2588a011d..d13960280 100644 --- a/src/nix/show-derivation.cc +++ b/src/nix/show-derivation.cc @@ -70,11 +70,12 @@ struct CmdShowDerivation : InstallablesCommand }, [&](DerivationOutputCAFixed dof) { outputObj.attr("path", store->printStorePath(dof.path(*store, drv.name, outputName))); - outputObj.attr("hashAlgo", dof.hash.printMethodAlgo()); - outputObj.attr("hash", dof.hash.hash.to_string(Base16, false)); + outputObj.attr("hashAlgo", printMethodAlgo(dof.ca)); + outputObj.attr("hash", getContentAddressHash(dof.ca).to_string(Base16, false)); + // FIXME print refs? }, [&](DerivationOutputCAFloating dof) { - outputObj.attr("hashAlgo", makeFileIngestionPrefix(dof.method) + printHashType(dof.hashType)); + outputObj.attr("hashAlgo", makeContentAddressingPrefix(dof.method) + printHashType(dof.hashType)); }, [&](DerivationOutputDeferred) {}, }, output.output); |