tldr/pages/common/nix-build.md

14 lines
340 B
Markdown
Raw Normal View History

2019-10-29 20:53:38 +00:00
# nix-build
> Build a Nix expression.
> See also: `nix3 build`.
> More information: <https://nixos.org/manual/nix/stable/command-ref/nix-build.html>.
2019-10-29 20:53:38 +00:00
- Build a Nix expression:
`nix-build '<nixpkgs>' --attr {{firefox}}`
2019-10-29 20:53:38 +00:00
- Build a sandboxed Nix expression (on non-NixOS):
2019-10-29 20:53:38 +00:00
`nix-build '<nixpkgs>' --attr {{firefox}} --option sandbox true`