mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 13:11:00 +01:00
Merge pull request #14507 from obsidiansystems/derivation-options-json-schema
JSON Schema for `DerivationOptions`
This commit is contained in:
commit
36419a6ccb
16 changed files with 325 additions and 17 deletions
1
src/json-schema-checks/derivation-options
Symbolic link
1
src/json-schema-checks/derivation-options
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../libstore-tests/data/derivation
|
||||
|
|
@ -71,6 +71,18 @@ schemas = [
|
|||
'with-signature.json',
|
||||
],
|
||||
},
|
||||
{
|
||||
'stem' : 'derivation-options',
|
||||
'schema' : schema_dir / 'derivation-options-v1.yaml',
|
||||
'files' : [
|
||||
'ia' / 'defaults.json',
|
||||
'ia' / 'all_set.json',
|
||||
'ia' / 'structuredAttrs_defaults.json',
|
||||
'ia' / 'structuredAttrs_all_set.json',
|
||||
'ca' / 'all_set.json',
|
||||
'ca' / 'structuredAttrs_all_set.json',
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
# Derivation and Derivation output
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ a Nix expression evaluates.
|
|||
[store derivation]: @docroot@/glossary.md#gloss-store-derivation
|
||||
|
||||
`nix derivation add` takes a single derivation in the JSON format.
|
||||
See [the manual](@docroot@/protocols/json/derivation.md) for a documentation of this format.
|
||||
See [the manual](@docroot@/protocols/json/derivation/index.md) for a documentation of this format.
|
||||
|
||||
)""
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ By default, this command only shows top-level derivations, but with
|
|||
[store derivation]: @docroot@/glossary.md#gloss-store-derivation
|
||||
|
||||
`nix derivation show` outputs a JSON map of [store path]s to derivations in JSON format.
|
||||
See [the manual](@docroot@/protocols/json/derivation.md) for a documentation of this format.
|
||||
See [the manual](@docroot@/protocols/json/derivation/index.md) for a documentation of this format.
|
||||
|
||||
[store path]: @docroot@/store/store-path.md
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue