Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::BuildChrootParams Struct Reference

#include <chroot.hh>

Public Attributes

std::filesystem::path chrootParentDir
bool useUidRange
bool isSandboxed
UserLock * buildUser
std::string storeDir
std::function< void(const std::filesystem::path &)> chownToBuilder

Detailed Description

Parameters for setting up a chroot environment.

Member Data Documentation

◆ buildUser

UserLock* nix::BuildChrootParams::buildUser

Build user (may be null if not using a build user)

◆ chownToBuilder

std::function<void(const std::filesystem::path &)> nix::BuildChrootParams::chownToBuilder

Callback to change ownership of a path to the build user

◆ chrootParentDir

std::filesystem::path nix::BuildChrootParams::chrootParentDir

The directory where the chroot will be created

◆ isSandboxed

bool nix::BuildChrootParams::isSandboxed

Whether the derivation type is sandboxed

◆ storeDir

std::string nix::BuildChrootParams::storeDir

The store directory (e.g., "/nix/store")

◆ useUidRange

bool nix::BuildChrootParams::useUidRange

Whether the derivation uses UID range feature


The documentation for this struct was generated from the following file: