aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-03 14:11:38 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-03 14:11:38 +0000
commitdbffd309fed95d306135617fdc18ce4cf6109025 (patch)
tree97f8be0fa860f2c725c6ee5555a324f14d9889b0 /src/libstore/store-api.cc
parent1be279af2622b196cc4630c48254adc96071c7e9 (diff)
parentc3c7aedbb5ac869b7c454e90683f77b9c527a75a (diff)
Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index e4083bbe1..0bfffbc36 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -242,6 +242,16 @@ bool Store::PathInfoCacheValue::isKnownNow()
return std::chrono::steady_clock::now() < time_point + ttl;
}
+StorePathSet Store::queryDerivationOutputs(const StorePath & path)
+{
+ auto outputMap = this->queryDerivationOutputMap(path);
+ StorePathSet outputPaths;
+ for (auto & i: outputMap) {
+ outputPaths.emplace(std::move(i.second));
+ }
+ return outputPaths;
+}
+
bool Store::isValidPath(const StorePath & storePath)
{
std::string hashPart(storePath.hashPart());