tldr/pages/common/nix-build.md

13 lines
310 B
Markdown
Raw Normal View History

2019-10-29 20:53:38 +00:00
# nix-build
> Build a Nix expression.
> More information: <https://nixos.org/releases/nix/latest/manual#sec-nix-build>.
- 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`