| Nix packages don't contain any source code. The package definition describes how to fetch the source code from a source (like a Git repo or a hosted archive) and build it. The built result only contains what is necessary at runtime. A sizeable amount of packages don't even fetch source code but a prebuilt binary which is then fixed up to work with Nix. There is a source cache, but it is optional. As an example, check out ripgrep [1]. It uses `fetchFromGithub` to retrieve the code. [1] https://github.com/NixOS/nixpkgs/blob/3bb54189b0c8132752fff3... |