nix-build
Build a Nix expression.
See also: tldr nix3 build
.
More information: https://nixos.org/manual/nix/stable/command-ref/nix-build.html.
-
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
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.