Does nix-build affect user environments?

nix-env for installation and uninstallation of a package doesn’t change the current user environment, but creates a new one.

nix-build builds a derivation, which can also install a package. Does it change the current user environment? Does it create a new user environment?

Thanks.

nix-build has no effect on the environment. It doesn’t install a package, just builds it into the store and creates a symlink at ./result to the output.

1 Like