Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
restricted-store.hh File Reference
#include "nix/store/store-api.hh"
#include "nix/util/sync.hh"
#include <future>

Go to the source code of this file.

Classes

struct  nix::RestrictionContext
struct  nix::RestrictionContext::State

Functions

ref< Store > nix::makeRestrictedStore (ref< LocalStoreConfig > config, ref< LocalStore > next, RestrictionContext &context)
ref< Builder > nix::makeRestrictedBuilder (Worker &inner, RestrictionContext &context)

Function Documentation

◆ makeRestrictedBuilder()

ref< Builder > nix::makeRestrictedBuilder ( Worker & inner,
RestrictionContext & context )

Create a builder that wraps an inner builder, adding restriction checks and dependency tracking for recursive Nix builds.

◆ makeRestrictedStore()

ref< Store > nix::makeRestrictedStore ( ref< LocalStoreConfig > config,
ref< LocalStore > next,
RestrictionContext & context )

Create a shared pointer to a restricted store.