Linux
Command
Library
Basics
Tips
Commands
nix-build
Build a Nix expression.
TLDR
Build a Nix expression
$ nix-build '<nixpkgs>' --attr [firefox]
Build a sandboxed Nix expression (on non-NixOS)
$ nix-build '<nixpkgs>' --attr [firefox] --option sandbox true
COLLAPSE ALL
Copied to clipboard