Linux command
nix-build.2 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
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
说明
nix-build builds Nix derivations. This is an alternate documentation version. The tool evaluates Nix expressions. Produces store paths and result links.
参数
- -A _ATTR_
- Attribute to build.
- --no-out-link
- Skip result symlink.
- --help
- Display help information.
FAQ
What is the nix-build.2 command used for?
nix-build builds Nix derivations. This is an alternate documentation version. The tool evaluates Nix expressions. Produces store paths and result links.
How do I run a basic nix-build.2 example?
Run `nix-build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -A _ATTR_ do in nix-build.2?
Attribute to build.