Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
chroot.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include <filesystem>
5
#include <map>
6
#include <memory>
7
#include <functional>
8
9
namespace
nix {
10
11
class
AutoDelete
;
12
struct
UserLock
;
13
17
struct
BuildChrootParams
18
{
20
std::filesystem::path
chrootParentDir
;
21
23
bool
useUidRange
;
24
26
bool
isSandboxed
;
27
29
UserLock
*
buildUser
;
30
32
std::string
storeDir
;
33
35
std::function<void(
const
std::filesystem::path &)>
chownToBuilder
;
36
};
37
48
std::pair<std::filesystem::path, AutoDelete> setupBuildChroot(
const
BuildChrootParams
& params);
49
50
}
// namespace nix
nix::AutoDelete
Definition
file-system.hh:375
nix::BuildChrootParams
Definition
chroot.hh:18
nix::BuildChrootParams::buildUser
UserLock * buildUser
Definition
chroot.hh:29
nix::BuildChrootParams::useUidRange
bool useUidRange
Definition
chroot.hh:23
nix::BuildChrootParams::isSandboxed
bool isSandboxed
Definition
chroot.hh:26
nix::BuildChrootParams::chrootParentDir
std::filesystem::path chrootParentDir
Definition
chroot.hh:20
nix::BuildChrootParams::chownToBuilder
std::function< void(const std::filesystem::path &)> chownToBuilder
Definition
chroot.hh:35
nix::BuildChrootParams::storeDir
std::string storeDir
Definition
chroot.hh:32
nix::UserLock
Definition
user-lock.hh:14
libstore
unix
build
chroot.hh
Generated by
1.18.0