nix-build.2
builds Nix derivations
TLDR
Build default.nix
$ nix-build
Build specific attribute$ nix-build -A [package]
Build from nixpkgs$ nix-build '<nixpkgs>' -A [hello]
Build without result link$ nix-build --no-out-link
SYNOPSIS
nix-build [options] [path]
DESCRIPTION
nix-build builds Nix derivations. This is an alternate documentation version.The tool evaluates Nix expressions. Produces store paths and result links.
PARAMETERS
PATH
Nix expression path.-A ATTR
Attribute to build.--no-out-link
Skip result symlink.--help
Display help information.
CAVEATS
Part of Nix toolset. Legacy interface. Use nix build for flakes.
HISTORY
nix-build is a core Nix command for building derivations from expressions.
