Translations:Nix (package manager)/12/zh
由Nix構建的軟體包被放在只讀的Nix存儲, 通常位於/nix/store. 每個軟體包會被賦予一個由加密hash值指定的獨一無二的地址, 該地址位於軟體包名稱和版本之後, 例如/nix/store/nawl092prjblbhvv16kxxbk6j9gkgcqm-git-2.14.1. 這些前綴的哈希處理使用到了對構建過程的所有輸入, 包括源文件, 完整依賴關係樹, 編譯器標誌, 等等. 這讓Nix可以同時安裝同一軟體包的不同版本, 甚至同一版本的不同構建, 比如由不同的編譯器構建的變體. . When adding, removing or updating a package, nothing is removed from the store; instead, symlinks to these packages are added, removed or changed in profiles.