Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
outputs-query.hh
Go to the documentation of this file.
1#pragma once
3
5
6#include <functional>
7
8namespace nix {
9
14using QueryRealisationFun = std::function<std::shared_ptr<const UnkeyedRealisation>(const DrvOutput &)>;
15
20 Store & store,
21 const StorePath & drvPath,
22 const Derivation & drv,
23 std::map<std::string, std::optional<StorePath>> & outputs,
24 QueryRealisationFun queryRealisation = {});
25
33std::optional<StorePath> deepQueryPartialDerivationOutput(
34 Store & store,
35 const StorePath & drvPath,
36 const std::string & outputName,
37 Store * evalStore = nullptr,
38 QueryRealisationFun queryRealisation = {});
39
47std::map<std::string, std::optional<StorePath>> deepQueryPartialDerivationOutputMap(
48 Store & store, const StorePath & drvPath, Store * evalStore = nullptr, QueryRealisationFun queryRealisation = {});
49
58 Store & store, const StorePath & drvPath, Store * evalStore = nullptr, QueryRealisationFun queryRealisation = {});
59
60} // namespace nix
Definition path.hh:33
Definition store-api.hh:397
std::map< std::string, std::optional< StorePath > > deepQueryPartialDerivationOutputMap(Store &store, const StorePath &drvPath, Store *evalStore=nullptr, QueryRealisationFun queryRealisation={})
Definition outputs-query.cc:198
std::function< std::shared_ptr< const UnkeyedRealisation >(const DrvOutput &)> QueryRealisationFun
Definition outputs-query.hh:14
OutputPathMap deepQueryDerivationOutputMap(Store &store, const StorePath &drvPath, Store *evalStore=nullptr, QueryRealisationFun queryRealisation={})
Definition outputs-query.cc:219
void queryPartialDerivationOutputMapCA(Store &store, const StorePath &drvPath, const Derivation &drv, std::map< std::string, std::optional< StorePath > > &outputs, QueryRealisationFun queryRealisation={})
Definition outputs-query.cc:187
Definition realisation.hh:26