Nix (package manager)/zh: Difference between revisions

Weijia (talk | contribs)
Created page with "== 备注 == <references />"
Ardenet (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 55: Line 55:
=== 沙盒 ===
=== 沙盒 ===


启用沙盒构建,Nix 为每个构建过程设置一个隔离环境。这样可以去除构建环境中额外的隐藏依赖,以提高可复现性。这包括在构建过程中禁止访问 <code>fetch*</code> 函数之外的网络,以及禁止访问 Nix store 之外的文件。根据操作系统的不同,对其他资源的访问也会被阻止(例如在 Linux 上进程间通信被隔离);详细信息请参阅 Nix 手册中的 [https://nixos.org/nix/manual/#sec-conf-file nix.conf 章节]
启用沙盒构建,Nix 为每个构建过程设置一个隔离环境。这用于移除构建环境中的的其它隐藏依赖,以提高构建结果的可复现性。这包括在构建过程中<code>fetch*</code> 函数之外的网络访问,以及Nix Store 之外的文件访问的不可行。根据操作系统的不同,对其他资源的访问也会被阻止(例如在 Linux 上进程间通信也是被隔离)。


沙盒在 Linux 上預設是開啟的,在 macOS 上則否。
沙盒在 Linux 上預設是開啟的,在 macOS 上則否。
Line 79: Line 79:




<div lang="en" dir="ltr" class="mw-content-ltr">
[[Category:Pedias]]
[[Category:Pedias]]
[[Category:Nix]]
[[Category:Nix]]
[[Category:Incomplete]]
[[Category:Incomplete]]
[[Category:Software]]
[[Category:Software]]
</div>