mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
We immediately use this in the JSON schemas for Derivation and Deriving Path, but we cannot yet use it in Store Object Info because those paths *do* include the store dir currently.
27 lines
1 KiB
YAML
27 lines
1 KiB
YAML
"$schema": "http://json-schema.org/draft-04/schema"
|
|
"$id": "https://nix.dev/manual/nix/latest/protocols/json/schema/deriving-path-v1.json"
|
|
title: Deriving Path
|
|
description: |
|
|
This schema describes the JSON representation of Nix's [Deriving Path](@docroot@/store/derivation/index.md#deriving-path).
|
|
oneOf:
|
|
- title: Constant
|
|
description: |
|
|
See [Constant](@docroot@/store/derivation/index.md#deriving-path-constant) deriving path.
|
|
$ref: "store-path-v1.yaml"
|
|
- title: Output
|
|
description: |
|
|
See [Output](@docroot@/store/derivation/index.md#deriving-path-output) deriving path.
|
|
type: object
|
|
properties:
|
|
drvPath:
|
|
"$ref": "#"
|
|
description: |
|
|
A deriving path to a [Derivation](@docroot@/store/derivation/index.md#store-derivation), whose output is being referred to.
|
|
output:
|
|
type: string
|
|
description: |
|
|
The name of an output produced by that derivation (e.g. "out", "doc", etc.).
|
|
required:
|
|
- drvPath
|
|
- output
|
|
additionalProperties: false
|