nix3-build:tldr:75b84
nix3-build: Build a package without making the `result` symlink, instead printing the store path to the stdout.
$ nix build --no-link --print-out-paths
try on your machine
The command "nix build --no-link --print-out-paths" is a command used in the Nix package manager.
Here's what each part of the command does:
- "nix build" is the basic command to build a Nix expression. It takes the specified Nix expression (usually a derivation) and builds it, generating the necessary outputs.
- "--no-link" is an option that tells Nix to skip linking the outputs. By default, Nix creates symbolic links in the Nix store to the built outputs, but with this option, it skips that step.
- "--print-out-paths" is another option that tells Nix to print out the paths of the built outputs. This displays the paths of all the outputs generated during the build process.
So, when you run "nix build --no-link --print-out-paths", it will build the specified Nix expression without creating symbolic links to the outputs, and it will display the paths of the built outputs on the console. This can be useful when you want to know where the built outputs are located for further use or inspection.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.