Home Explore Blog Models 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
da60dc24 (1st chunk of `src/nix/derivation-add.md`)
Title: Nix Derivation Add Command Overview
Summary
The `nix derivation add` command reads a JSON representation of a store derivation from standard input. Store derivations are internal Nix objects, specifically store paths with a `.drv` extension, which represent the build-time dependency graph resulting from a Nix expression. The command expects the input JSON to conform to the format detailed in `../../protocols/json/derivation.md`.