mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Expose ChrootPath, PathsInChroot
Will want these for settings in a moment.
This commit is contained in:
parent
d53c7b816b
commit
8463fef161
2 changed files with 12 additions and 12 deletions
|
|
@ -107,17 +107,6 @@ protected:
|
|||
*/
|
||||
const DerivationType derivationType;
|
||||
|
||||
/**
|
||||
* Stuff we need to pass to initChild().
|
||||
*/
|
||||
struct ChrootPath
|
||||
{
|
||||
Path source;
|
||||
bool optional = false;
|
||||
};
|
||||
|
||||
typedef std::map<Path, ChrootPath> PathsInChroot; // maps target path to source path
|
||||
|
||||
typedef StringMap Environment;
|
||||
Environment env;
|
||||
|
||||
|
|
@ -865,7 +854,7 @@ void DerivationBuilderImpl::startBuilder()
|
|||
processSandboxSetupMessages();
|
||||
}
|
||||
|
||||
DerivationBuilderImpl::PathsInChroot DerivationBuilderImpl::getPathsInSandbox()
|
||||
PathsInChroot DerivationBuilderImpl::getPathsInSandbox()
|
||||
{
|
||||
PathsInChroot pathsInChroot;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,17 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
* Stuff we need to pass to initChild().
|
||||
*/
|
||||
struct ChrootPath
|
||||
{
|
||||
Path source;
|
||||
bool optional = false;
|
||||
};
|
||||
|
||||
typedef std::map<Path, ChrootPath> PathsInChroot; // maps target path to source path
|
||||
|
||||
/**
|
||||
* Parameters by (mostly) `const` reference for `DerivationBuilder`.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue