nami installs nixpkgs packages without running the Nix evaluator
nami is a package manager that installs packages from nixpkgs, a collection of over 140,000 packages built for Linux, without running Nix's evaluator on the user's computer. Normally Nix evaluates nixpkgs to find a package's store path[1], and every computer with the same nixpkgs revision gets the same answer. nami evaluates each nixpkgs release once, ahead of time, and writes a catalog index with store paths, versions, descriptions, licences and apps. On the user's computer, installing or searching for a package is then a lookup in that file.
The catalog must be signed with an ed25519 key that the computer trusts, because whoever controls the catalog decides what a package name means. nami downloads the packages itself from the binary cache[2] at cache.nixos.org, checks signatures and hashes, and records paths only after a whole closure is unpacked. Packages install into /nix/store, and when a package needs graphics, nami links a runtime with nixpkgs' mesa and fontconfig at /run/opengl-driver.
Packages that are not in the cache, such as unfree ones, are built locally with nixpkgs' own builder inside bubblewrap[3], which allows no network except for downloads with a known hash. The author lists the costs: there is no full language, only YAML setups and recipes, users follow the catalog's version of each package, and only x86_64 Linux is supported for now.
Read the original namios.devDiscussion
Sources
-
namios.dev
Nami installs from nixpkgs without evaluating Nix

