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