Home Explore Blog CI



nix

1st chunk of `src/nix/derivation-add.md`
ea203fd1cc66bb8569a8b943ee255d24028c82e71510be15000000010000019a
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}}

)""

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.