mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 05:00:58 +01:00
Make inputDrvs JSON schema more precise
It now captures the stable non-recursive format (just an output set) and the unstable recursive form for dynamic derivations.
This commit is contained in:
parent
d4c69c7b8f
commit
be2572ed8d
1 changed files with 32 additions and 0 deletions
|
|
@ -103,6 +103,13 @@ properties:
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> specifies that this derivation depends on the `dev` output of `curl`, and the `out` output of `unzip`.
|
> specifies that this derivation depends on the `dev` output of `curl`, and the `out` output of `unzip`.
|
||||||
|
additionalProperties:
|
||||||
|
title: Store Path
|
||||||
|
description: |
|
||||||
|
A store path to a derivation, mapped to the outputs of that derivation.
|
||||||
|
oneOf:
|
||||||
|
- "$ref": "#/$defs/outputNames"
|
||||||
|
- "$ref": "#/$defs/dynamicOutputs"
|
||||||
|
|
||||||
system:
|
system:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -167,3 +174,28 @@ properties:
|
||||||
title: Expected hash value
|
title: Expected hash value
|
||||||
description: |
|
description: |
|
||||||
For fixed-output derivations, the expected content hash in base-16.
|
For fixed-output derivations, the expected content hash in base-16.
|
||||||
|
|
||||||
|
outputName:
|
||||||
|
type: string
|
||||||
|
title: Output name
|
||||||
|
description: Name of the derivation output to depend on
|
||||||
|
|
||||||
|
outputNames:
|
||||||
|
type: array
|
||||||
|
title: Output Names
|
||||||
|
description: Set of names of derivation outputs to depend on
|
||||||
|
items:
|
||||||
|
"$ref": "#/$defs/outputName"
|
||||||
|
|
||||||
|
dynamicOutputs:
|
||||||
|
type: object
|
||||||
|
title: Dynamic Outputs
|
||||||
|
description: |
|
||||||
|
**Experimental feature**: [`dynamic-derivations`](@docroot@/development/experimental-features.md#xp-feature-dynamic-derivations)
|
||||||
|
|
||||||
|
This recursive data type allows for depending on outputs of outputs.
|
||||||
|
properties:
|
||||||
|
outputs:
|
||||||
|
"$ref": "#/$defs/outputNames"
|
||||||
|
dynamicOutputs:
|
||||||
|
"$ref": "#/$defs/dynamicOutputs"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue