/nix-build-gc

Garbage Collects nix-build Symlinks

Primary LanguageNixApache License 2.0Apache-2.0

nix-build-gc

Given a directory, this command will delete all symlinks that point to the /nix/store and garbage collect the associated objects in the store. This is useful after using nix-build to manually clean up the built artifacts. Otherwise you will leak objects into the /nix/store requiring a complicated garbage collecting operation. Run this before running nix-build again.