nix3-derivation-add1
Add a store derivation
Usage
nix derivation
add
[option…]
Warning
This program is experimental ⟨@docroot@/development/experimental-features.md#xp-feature-nix-command⟩ and its interface is subject to change.
Overview
This command reads from standard input a JSON representation of a store derivation ⟨@docroot@/glossary.md#gloss-store-derivation⟩\c .
Store derivations are used internally by Nix. They are store paths with extension .drv that represent the build-time dependency graph to which a Nix expression evaluates.
nix derivation add takes a single derivation in the following format:
{{#include ../../protocols/json/derivation.md}}
Options
•
|
|
|---|---|
|
Show what this command would do without doing it. |
Logging-related options
•
|
|
|---|---|
|
Set the logging verbosity level to ‘debug’. |
|
•
|
|
|
Set the format of log output; one of |
|
•
|
|
|
Print full build logs on standard error. |
|
•
|
|
|
Decrease the logging verbosity level. |
|
•
|
|
|
Increase the logging verbosity level. |
Miscellaneous global options
- •
-
--help⟨#opt-help⟩
-
Show usage information.
- •
-
--offline⟨#opt-offline⟩
-
Disable substituters and consider all previously downloaded files up-to-date.
- •
-
--option⟨#opt-option⟩ name value
-
Set the Nix configuration setting name to value (overriding
nix.conf).
- •
-
--refresh⟨#opt-refresh⟩
-
Consider all previously downloaded files out-of-date.
- •
-
--version⟨#opt-version⟩
-
Show version information.
NoteSee
man nix.conf⟨@docroot@/command-ref/conf-file.md#command-line-flags⟩ for overriding configuration settings with command line flags.