The Nix sandbox is a hidden input

9 points by abidingabi


asymmetric

Including the sandbox-paths in the derivation would make Nix completely unusable. Suppose you did fold sandbox-paths into the output hash by having it in the derivation. My busybox is busybox-1.37.0 at one store path; yours is a different version at a different path. The same derivation would then hash to different outputs on our two machines, and binary-cache sharing across would collapse.

I don’t understand why this would be an issue. The whole point of Nix is to make implicit dependencies explicit, and to only substitute things which are “the same” according to that standard. Why would it be an issue with the sandbox?