Home Explore Blog CI



nix

src/nix/derivation-add.md
140a0b67ff13d52187732f7b253e50d5e377d69ef5863a3e00000003000001db
R""(

# Description

This command reads from standard input a JSON representation of a
[store derivation].

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}}

)""

Chunks
ea203fd1 (1st chunk of `src/nix/derivation-add.md`)
Title: Description of the `nix derivation add` command
Summary
The `nix derivation add` command reads a JSON representation of a store derivation from standard input. Store derivations are `.drv` files that represent the build-time dependency graph of a Nix expression. The command expects a single derivation in a specific JSON format, described in the `derivation.md` file.