1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Expose ChrootPath, PathsInChroot

Will want these for settings in a moment.
This commit is contained in:
John Ericson 2025-08-19 17:46:26 -04:00
parent d53c7b816b
commit 8463fef161
2 changed files with 12 additions and 12 deletions

View file

@ -107,17 +107,6 @@ protected:
*/ */
const DerivationType derivationType; 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; typedef StringMap Environment;
Environment env; Environment env;
@ -865,7 +854,7 @@ void DerivationBuilderImpl::startBuilder()
processSandboxSetupMessages(); processSandboxSetupMessages();
} }
DerivationBuilderImpl::PathsInChroot DerivationBuilderImpl::getPathsInSandbox() PathsInChroot DerivationBuilderImpl::getPathsInSandbox()
{ {
PathsInChroot pathsInChroot; PathsInChroot pathsInChroot;

View file

@ -11,6 +11,17 @@
namespace nix { 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`. * Parameters by (mostly) `const` reference for `DerivationBuilder`.
*/ */