mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix some dangling references
This commit is contained in:
parent
4a79b3598f
commit
da3d776cb9
23 changed files with 139 additions and 235 deletions
|
@ -77,8 +77,7 @@ The following settings are currently available:
|
|||
--optimise` to get rid of duplicate files.
|
||||
|
||||
- `builders`
|
||||
A list of machines on which to perform builds. See
|
||||
[???](#chap-distributed-builds) for details.
|
||||
A list of machines on which to perform builds.
|
||||
|
||||
- `builders-use-substitutes`
|
||||
If set to `true`, Nix will instruct remote build machines to use
|
||||
|
@ -140,8 +139,6 @@ The following settings are currently available:
|
|||
`-jN` flag to GNU Make. It can be overridden using the `--cores`
|
||||
command line switch and defaults to `1`. The value `0` means that
|
||||
the builder should use all available CPU cores in the system.
|
||||
|
||||
See also [???](#chap-tuning-cores-and-jobs).
|
||||
|
||||
- `diff-hook`
|
||||
Absolute path to an executable capable of diffing build results. The
|
||||
|
@ -298,8 +295,6 @@ The following settings are currently available:
|
|||
`preferLocalBuild` derivation attribute which executes locally
|
||||
regardless). It can be overridden using the `--max-jobs` (`-j`)
|
||||
command line switch.
|
||||
|
||||
See also [???](#chap-tuning-cores-and-jobs).
|
||||
|
||||
- `max-silent-time`
|
||||
This option defines the maximum number of seconds that a builder can
|
||||
|
@ -429,12 +424,10 @@ The following settings are currently available:
|
|||
|
||||
Example:
|
||||
`/nix/store/zf5lbh336mnzf1nlswdn11g4n2m8zh3g-bash-4.4-p23-dev
|
||||
/nix/store/rjxwxwv1fpn9wa2x5ssk5phzwlcv4mna-bash-4.4-p23-doc
|
||||
/nix/store/6bqvbzjkcp9695dq0dpl5y43nvy37pq1-bash-4.4-p23-info
|
||||
/nix/store/r7fng3kk3vlpdlh2idnrbn37vh4imlj2-bash-4.4-p23-man
|
||||
/nix/store/xfghy8ixrhz3kyy6p724iv3cxji088dx-bash-4.4-p23`.
|
||||
|
||||
See [???](#chap-post-build-hook) for an example implementation.
|
||||
/nix/store/rjxwxwv1fpn9wa2x5ssk5phzwlcv4mna-bash-4.4-p23-doc
|
||||
/nix/store/6bqvbzjkcp9695dq0dpl5y43nvy37pq1-bash-4.4-p23-info
|
||||
/nix/store/r7fng3kk3vlpdlh2idnrbn37vh4imlj2-bash-4.4-p23-man
|
||||
/nix/store/xfghy8ixrhz3kyy6p724iv3cxji088dx-bash-4.4-p23`.
|
||||
|
||||
- `repeat`
|
||||
How many times to repeat builds to check whether they are
|
||||
|
@ -459,8 +452,7 @@ The following settings are currently available:
|
|||
`allowed-uri`. The default is `false`.
|
||||
|
||||
- `run-diff-hook`
|
||||
If true, enable the execution of
|
||||
[varlistentry\_title](#conf-diff-hook).
|
||||
If true, enable the execution of the `diff-hook` program.
|
||||
|
||||
When using the Nix daemon, `run-diff-hook` must be set in the
|
||||
`nix.conf` configuration file, and cannot be passed at the command
|
||||
|
@ -595,15 +587,11 @@ The following settings are currently available:
|
|||
Nix will print a log message at the "vomit" level for every function
|
||||
entrance and function exit.
|
||||
|
||||
<div class="informalexample">
|
||||
|
||||
function-trace entered undefined position at 1565795816999559622
|
||||
function-trace exited undefined position at 1565795816999581277
|
||||
function-trace entered /nix/store/.../example.nix:226:41 at 1565795253249935150
|
||||
function-trace exited /nix/store/.../example.nix:226:41 at 1565795253249941684
|
||||
|
||||
</div>
|
||||
|
||||
The `undefined position` means the function call is a builtin.
|
||||
|
||||
Use the `contrib/stack-collapse.py` script distributed with the Nix
|
||||
|
|
|
@ -46,7 +46,7 @@ expression to a low-level store derivation) and [`nix-store
|
|||
|
||||
All options not listed here are passed to `nix-store
|
||||
--realise`, except for `--arg` and `--attr` / `-A` which are passed to
|
||||
`nix-instantiate`. See also [???](#sec-common-options).
|
||||
`nix-instantiate`.
|
||||
|
||||
- `--no-out-link`
|
||||
Do not create a symlink to the output path. Note that as a result
|
||||
|
|
|
@ -13,7 +13,6 @@ Title: nix-channel
|
|||
A Nix channel is a mechanism that allows you to automatically stay
|
||||
up-to-date with a set of pre-built Nix expressions. A Nix channel is
|
||||
just a URL that points to a place containing a set of Nix expressions.
|
||||
See also [???](#sec-channels).
|
||||
|
||||
To see the list of official NixOS channels, visit
|
||||
<https://nixos.org/channels>.
|
||||
|
|
|
@ -66,7 +66,7 @@ match. Here are some examples:
|
|||
|
||||
This section lists the options that are common to all operations. These
|
||||
options are allowed for every subcommand, though they may not always
|
||||
have an effect. See also [???](#sec-common-options).
|
||||
have an effect.
|
||||
|
||||
- `--file` / `-f` *path*
|
||||
Specifies the Nix expression (designated below as the *active Nix
|
||||
|
|
|
@ -30,8 +30,6 @@ the resulting store derivations are printed on standard output.
|
|||
If *files* is the character `-`, then a Nix expression will be read from
|
||||
standard input.
|
||||
|
||||
See also [???](#sec-common-options) for a list of common options.
|
||||
|
||||
# Options
|
||||
|
||||
- `--add-root` *path*; `--indirect`
|
||||
|
|
|
@ -50,7 +50,7 @@ will cause `nix-shell` to print `Hello shell`.
|
|||
|
||||
All options not listed here are passed to `nix-store
|
||||
--realise`, except for `--arg` and `--attr` / `-A` which are passed to
|
||||
`nix-instantiate`. See also [???](#sec-common-options).
|
||||
`nix-instantiate`.
|
||||
|
||||
- `--command` *cmd*
|
||||
In the environment of the derivation, run the shell command *cmd*.
|
||||
|
|
|
@ -23,16 +23,15 @@ subcommand to be performed. These are documented below.
|
|||
|
||||
This section lists the options that are common to all operations. These
|
||||
options are allowed for every subcommand, though they may not always
|
||||
have an effect. See also [???](#sec-common-options) for a list of common
|
||||
options.
|
||||
have an effect.
|
||||
|
||||
- `--add-root` *path*
|
||||
Causes the result of a realisation (`--realise` and
|
||||
`--force-realise`) to be registered as a root of the garbage
|
||||
collector(see [???](#ssec-gc-roots)). The root is stored in *path*,
|
||||
which must be inside a directory that is scanned for roots by the
|
||||
garbage collector (i.e., typically in a subdirectory of
|
||||
`/nix/var/nix/gcroots/`) *unless* the `--indirect` flag is used.
|
||||
collector. The root is stored in *path*, which must be inside a
|
||||
directory that is scanned for roots by the garbage collector
|
||||
(i.e., typically in a subdirectory of `/nix/var/nix/gcroots/`)
|
||||
*unless* the `--indirect` flag is used.
|
||||
|
||||
If there are multiple results, then multiple symlinks will be
|
||||
created by sequentially numbering symlinks beyond the first one
|
||||
|
@ -209,8 +208,7 @@ The following suboperations may be specified:
|
|||
|
||||
- `--print-roots`
|
||||
This operation prints on standard output the set of roots used by
|
||||
the garbage collector. What constitutes a root is described in
|
||||
[???](#ssec-gc-roots).
|
||||
the garbage collector.
|
||||
|
||||
- `--print-live`
|
||||
This operation prints on standard output the set of “live” store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue