Deriving Path
Title: Deriving Path
| Type | combining |
| Required | No |
| Additional properties | Any type allowed |
Description: This schema describes the JSON representation of Nix's Deriving Path.
1. Property Constant
Title: Constant
| Type | string |
| Required | No |
| Defined in | store-path-v1.yaml |
Description: See Constant deriving path.
| Restrictions | |
|---|---|
| Min length | 34 |
| Must match regular expression | ^[0123456789abcdfghijklmnpqrsvwxyz]{32}-.+$ Test |
2. Property Output
Title: Output
| Type | object |
| Required | No |
| Additional properties | Not allowed |
Description: See Output deriving path.
| Property | Type | Pattern | Title/Description |
|---|---|---|---|
| + drvPath | object | No | Deriving Path |
| + output | string | No | The name of an output produced by that derivation (e.g. "out", "doc", etc.). |
2.1. Property drvPath
Title: Deriving Path
| Type | combining |
| Required | Yes |
| Additional properties | Any type allowed |
| Same definition as | Deriving Path |
Description: A deriving path to a Derivation, whose output is being referred to.
2.2. Property output
| Type | string |
| Required | Yes |
Description: The name of an output produced by that derivation (e.g. "out", "doc", etc.).
Examples
Constant
"g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-foo.drv"
Output of static derivation
{
"drvPath": "g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-foo.drv",
"output": "bar"
}
Output of dynamic derivation
{
"drvPath": {
"drvPath": "g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-foo.drv",
"output": "bar"
},
"output": "baz"
}