LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nix-build

builds Nix expressions

TLDR

Build default.nix
$ nix-build
copy
Build specific file
$ nix-build [path/to/file.nix]
copy
Build with attribute
$ nix-build -A [attribute]
copy
Build from expression
$ nix-build -E "[with import <nixpkgs> {}; hello]"
copy
Don't create result symlink
$ nix-build --no-out-link
copy
Build and keep output
$ nix-build -o [result-link]
copy
Show build log
$ nix-build -v
copy

SYNOPSIS

nix-build [options] [path]

DESCRIPTION

nix-build builds Nix expressions. It creates derivations and builds them.The tool produces output in /nix/store. Creates result symlink by default.

PARAMETERS

PATH

Nix expression file.
-A ATTR
Build specific attribute.
-E EXPR
Build expression.
--no-out-link
Don't create result link.
-o LINK
Output symlink name.
-v
Verbose mode.
--help
Display help information.

INSTALL

sudo apt install nix-bin
copy
sudo dnf install nix
copy
sudo pacman -S nix
copy
sudo apk add nix
copy
sudo zypper install nix
copy
nix profile install nixpkgs#nix
copy

CAVEATS

Legacy command. Consider nix build. Nix expressions required.

HISTORY

nix-build is part of Nix, providing the traditional build command interface.

SEE ALSO

nix(1), nix-shell(1), nix-env(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid