# 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):
`nix-build --attr {{expression_name}} --option sandbox true`