Skip to content

Commit 57f94c8

Browse files
committed
Update derivation-options-v1 schema for derivation-meta
1 parent 2f1f63c commit 57f94c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/manual/source/protocols/json/schema/derivation-options-v1.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ required:
2626
- requiredSystemFeatures
2727
- preferLocalBuild
2828
- allowSubstitutes
29+
- meta
2930
properties:
3031
outputChecks:
3132
type: object
@@ -139,6 +140,19 @@ properties:
139140
description: |
140141
Whether substituting from other stores should be allowed for this derivation's outputs.
141142
143+
meta:
144+
oneOf:
145+
- type: object
146+
- type: "null"
147+
title: Metadata
148+
description: |
149+
Metadata excluded from hash computation when using structured attributes with the `derivation-meta` system feature.
150+
151+
Must be a JSON object containing arbitrary metadata about the derivation (description, license, maintainers, etc.).
152+
This field is only populated when both `__meta` is present in structured attributes and `derivation-meta`
153+
is listed in `requiredSystemFeatures`. Otherwise, `__meta` remains as a regular attribute in structured attributes
154+
and is included in the derivation hash.
155+
142156
additionalProperties: false
143157

144158
$defs:

0 commit comments

Comments
 (0)