Deriving Path

Title: Deriving Path

Typecombining
RequiredNo
Additional propertiesAny type allowed

Description: This schema describes the JSON representation of Nix's Deriving Path.

One of(Option)
Constant
Output

1. Property Constant

Title: Constant

Typestring
RequiredNo
Defined instore-path-v1.yaml

Description: See Constant deriving path.

Restrictions
Min length34
Must match regular expression^[0123456789abcdfghijklmnpqrsvwxyz]{32}-.+$ Test

2. Property Output

Title: Output

Typeobject
RequiredNo
Additional propertiesNot allowed

Description: See Output deriving path.

PropertyTypePatternTitle/Description
+ drvPathobjectNoDeriving Path
+ outputstringNoThe name of an output produced by that derivation (e.g. "out", "doc", etc.).

2.1. Property drvPath

Title: Deriving Path

Typecombining
RequiredYes
Additional propertiesAny type allowed
Same definition asDeriving Path

Description: A deriving path to a Derivation, whose output is being referred to.

2.2. Property output

Typestring
RequiredYes

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"
}