mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 13:11:00 +01:00
Eliminate useChroot
This commit is contained in:
parent
67408807d8
commit
9f8f3968e3
3 changed files with 155 additions and 101 deletions
|
|
@ -1,5 +1,15 @@
|
|||
#ifdef __APPLE__
|
||||
|
||||
# include <spawn.h>
|
||||
# include <sys/sysctl.h>
|
||||
# include <sandbox.h>
|
||||
|
||||
/* This definition is undocumented but depended upon by all major browsers. */
|
||||
extern "C" int
|
||||
sandbox_init_with_parameters(const char * profile, uint64_t flags, const char * const parameters[], char ** errorbuf);
|
||||
|
||||
namespace nix {
|
||||
|
||||
struct DarwinDerivationBuilder : DerivationBuilderImpl
|
||||
{
|
||||
PathsInChroot pathsInChroot;
|
||||
|
|
@ -185,4 +195,6 @@ struct DarwinDerivationBuilder : DerivationBuilderImpl
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue