Nix’s immutable store gives software a fixed, fully known dependency graph, but most packages still behave as if they run on a mutable filesystem. They are adapted to Nix through wrappers and patches that recreate assumptions about locations such as /usr/lib, /etc, and PATH. The argument is that this amounts to using Nix to build conventional software, rather than designing software for Nix. Programs built for the store could rely on fixed paths and immutability, bypass compatibility layers, and avoid runtime discovery and validation.
An Ansible package illustrates the overhead: its launcher sets up 18 PATH directories, while an injected Python line adds 78 site-packages directories for Python to search. A survey of 15 Nixpkgs programs found extensive failed file lookups at startup; Jekyll made 8,167 unsuccessful requests just to print its version, while cloc failed 95% of its lookups. Programs also recheck data that cannot change: running aws --version reads and hashes 869 source files to validate existing bytecode. The piece notes that ecosystems already have techniques for reducing such work, including Python’s unchecked bytecode hashes and Yarn Plug’n’Play, but Nix offers a deeper advantage: lookup tables and other metadata can be computed at build time and stored as immutable inputs, with no invalidation logic needed. The call is to make Nix’s immutability shape software itself, reducing startup work, complexity, and runtime surprises.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.