mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Give Store::queryDerivationOutputMap
and evalStore
argument
Picking up where https://github.com/NixOS/nix/pull/9563 left off.
This commit is contained in:
parent
b7e016ab24
commit
5f30c8acc7
2 changed files with 3 additions and 3 deletions
|
@ -547,8 +547,8 @@ std::map<std::string, std::optional<StorePath>> Store::queryPartialDerivationOut
|
||||||
return outputs;
|
return outputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputPathMap Store::queryDerivationOutputMap(const StorePath & path) {
|
OutputPathMap Store::queryDerivationOutputMap(const StorePath & path, Store * evalStore) {
|
||||||
auto resp = queryPartialDerivationOutputMap(path);
|
auto resp = queryPartialDerivationOutputMap(path, evalStore);
|
||||||
OutputPathMap result;
|
OutputPathMap result;
|
||||||
for (auto & [outName, optOutPath] : resp) {
|
for (auto & [outName, optOutPath] : resp) {
|
||||||
if (!optOutPath)
|
if (!optOutPath)
|
||||||
|
|
|
@ -369,7 +369,7 @@ public:
|
||||||
* Query the mapping outputName=>outputPath for the given derivation.
|
* Query the mapping outputName=>outputPath for the given derivation.
|
||||||
* Assume every output has a mapping and throw an exception otherwise.
|
* Assume every output has a mapping and throw an exception otherwise.
|
||||||
*/
|
*/
|
||||||
OutputPathMap queryDerivationOutputMap(const StorePath & path);
|
OutputPathMap queryDerivationOutputMap(const StorePath & path, Store * evalStore = nullptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query the full store path given the hash part of a valid store
|
* Query the full store path given the hash part of a valid store
|
||||||
|
|
Loading…
Reference in a new issue