Nix (package manager)/zh-hans: Difference between revisions
Updating to match new version of source page Tags: Mobile edit Mobile web edit |
Bot-wxt1221 (talk | contribs) No edit summary |
||
| Line 57: | Line 57: | ||
=== 沙盒化 === | === 沙盒化 === | ||
当启用沙盒构建时,Nix会为每个构建过程设置一个隔离的环境。它用于移除构建环境中额外的隐藏依赖,以提高可复现性。这包括在构建过程中禁止<code>fetch*</code>函数之外对网络的访问,和Nix存储之外对文件的访问。根据操作系统的不同,对其他资源的访问也会被阻止(例如,进程间通信在Linux上被隔离)。 | |||
当启用沙盒构建时,Nix会为每个构建过程设置一个隔离的环境。它用于移除构建环境中额外的隐藏依赖,以提高可复现性。这包括在构建过程中禁止<code>fetch*</code> | |||
沙盒化在Linux上默认启用,在macOS上默认禁用。 | 沙盒化在Linux上默认启用,在macOS上默认禁用。 | ||