mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 13:44:45 +00:00
C binaries embed store paths of gcc and *-dev inputs as strings (include/comp_dir style). Nix treats those as runtime dependencies, keeping the full compiler and header packages in the closure. Remove the accidental references with remove-references-to and guard with disallowedRequisites. Measured x86_64-linux closure drop: ~867M -> ~543M. Assisted-by: Grok by xAI (Grok Build)