commands.sh

nix-build

all

Build a Nix expression. See also: `nix build.3`.

More info →

Options (1)

-A, --attrboolean

Build a Nix expression

Example: nix-build '<nixpkgs>' {{[-A|--attr]}} {{firefox}}

Examples (2)

Build a Nix expression

nix-build '<nixpkgs>' [-A|--attr] firefox

Build a sandboxed Nix expression (on non-NixOS)

nix-build '<nixpkgs>' [-A|--attr] firefox --option sandbox true
made by @shridhargupta | data from tldr-pages