LinuxCommandLibrary

nix-build.3

builds Nix packages

TLDR

Build expression
$ nix-build [file.nix]
copy
Build with arguments
$ nix-build --arg [name] [value]
copy
Build keeping logs
$ nix-build --keep-going
copy
Show derivation
$ nix-build --dry-run
copy

SYNOPSIS

nix-build [options] [path]

DESCRIPTION

nix-build builds Nix packages. This is another documentation variant.
The tool processes Nix files. Outputs to Nix store with result symlink.

PARAMETERS

PATH

Path to Nix expression.
--arg NAME VALUE
Pass argument to expression.
--keep-going
Continue on errors.
--dry-run
Show what would be built.
--help
Display help information.

CAVEATS

Requires Nix installation. Expression evaluation. Store path outputs.

HISTORY

nix-build provides derivation building as part of the core Nix toolchain.

SEE ALSO

nix-build(1), nix(1), nix-env(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard