mirror of https://github.com/CrimsonTome/tldr.git
14 lines
340 B
Markdown
14 lines
340 B
Markdown
# nix-build
|
|
|
|
> Build a Nix expression.
|
|
> See also: `nix3 build`.
|
|
> More information: <https://nixos.org/manual/nix/stable/command-ref/nix-build.html>.
|
|
|
|
- Build a Nix expression:
|
|
|
|
`nix-build '<nixpkgs>' --attr {{firefox}}`
|
|
|
|
- Build a sandboxed Nix expression (on non-NixOS):
|
|
|
|
`nix-build '<nixpkgs>' --attr {{firefox}} --option sandbox true`
|