Build a Nix expression. See also: tldr nix3 build. More information: https://nixos.org/manual/nix/stable/command-ref/nix-build.html.
tldr nix3 build
nix-build '<nixpkgs>' --attr firefox
nix-build '<nixpkgs>' --attr firefox --option sandbox true