diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2023-01-13 11:00:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 11:00:56 +0100 |
commit | bdeb6de889219cb9d1ba94b4adc75b0d8000e1b2 (patch) | |
tree | 7248384116e25e1078aa884972337de198ba493b /src/libstore/store-api.hh | |
parent | dda71d3726a1767dbd4674cde6e130093e290183 (diff) | |
parent | e5eb05c5990d837e0bbc1529e3b5b167f7015be0 (diff) |
Merge pull request #7430 from tweag/ca/fix-nix-log
Ca/fix nix log
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 4a88d7216..a1c499249 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -618,6 +618,13 @@ public: */ StorePathSet exportReferences(const StorePathSet & storePaths, const StorePathSet & inputPaths); + /** + * Given a store path, return the realisation actually used in the realisation of this path: + * - If the path is a content-addressed derivation, try to resolve it + * - Otherwise, find one of its derivers + */ + std::optional<StorePath> getBuildDerivationPath(const StorePath &); + /* Hack to allow long-running processes like hydra-queue-runner to occasionally flush their path info cache. */ void clearPathInfoCache() |