tldr/pages/common/nix-build.md

13 lines
302 B
Markdown
Raw Permalink 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 --attr {{expression_name}}`
- Build a sandboxed Nix expression (on non-NixOS):
2019-10-29 20:53:38 +00:00
`nix-build --attr {{expression_name}} --option sandbox true`