Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
derivation-env-desugar.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/types.hh
"
5
#include "
nix/store/path.hh
"
6
7
namespace
nix {
8
9
class
Store
;
10
11
struct
SingleDerivedPath
;
12
13
namespace
derivation
{
14
template
<
typename
Inputs,
typename
Out>
15
struct
Derivation
;
16
struct
Output
;
17
template
<
typename
Input>
18
struct
Options
;
19
}
// namespace derivation
20
21
using
Derivation =
derivation::Derivation<std::set<SingleDerivedPath>
,
derivation::Output
>;
22
using
BasicDerivation =
derivation::Derivation<StorePathSet, derivation::Output>
;
23
37
struct
DesugaredEnv
38
{
39
struct
EnvEntry
40
{
46
bool
prependBuildDirectory
=
false
;
47
51
std::string
value
;
52
};
53
57
std::map<std::string, EnvEntry, std::less<>>
variables
;
58
65
StringMap
extraFiles
;
66
80
std::string &
atFileEnvPair
(std::string_view name, std::string fileName);
81
90
static
DesugaredEnv
create
(
91
Store
& store,
92
const
BasicDerivation & drv,
93
const
derivation::Options<StorePath>
& drvOptions,
94
const
StorePathSet & inputPaths);
95
};
96
97
}
// namespace nix
nix::Store
Definition
store-api.hh:397
path.hh
nix::derivation
Definition
derivation-options.cc:339
nix::DesugaredEnv::EnvEntry
Definition
derivation-env-desugar.hh:40
nix::DesugaredEnv::EnvEntry::value
std::string value
Definition
derivation-env-desugar.hh:51
nix::DesugaredEnv::EnvEntry::prependBuildDirectory
bool prependBuildDirectory
Definition
derivation-env-desugar.hh:46
nix::DesugaredEnv
Definition
derivation-env-desugar.hh:38
nix::DesugaredEnv::create
static DesugaredEnv create(Store &store, const BasicDerivation &drv, const derivation::Options< StorePath > &drvOptions, const StorePathSet &inputPaths)
Definition
derivation-env-desugar.cc:20
nix::DesugaredEnv::extraFiles
StringMap extraFiles
Definition
derivation-env-desugar.hh:65
nix::DesugaredEnv::variables
std::map< std::string, EnvEntry, std::less<> > variables
Definition
derivation-env-desugar.hh:57
nix::DesugaredEnv::atFileEnvPair
std::string & atFileEnvPair(std::string_view name, std::string fileName)
Definition
derivation-env-desugar.cc:8
nix::SingleDerivedPath
Definition
derived-path.hh:105
nix::derivation::Derivation
Definition
derivations.hh:208
nix::derivation::Options
Definition
derivation-options.hh:99
nix::derivation::Output
Definition
output.hh:22
types.hh
nix::StringMap
std::map< std::string, std::string, std::less<> > StringMap
Definition
types.hh:26
libstore
include
nix
store
build
derivation-env-desugar.hh
Generated by
1.18.0