-
Notifications
You must be signed in to change notification settings - Fork 0
/
derivation.schema.json
1 lines (1 loc) · 3.38 KB
/
derivation.schema.json
1
{"title": "Derivation", "description": "A Nix derivation, which is an evaluated (not realized) derivation.", "type": "object", "properties": {"attributePath": {"title": "Attributepath", "description": "Attribute path from the flake derivation set", "type": "string"}, "derivationPath": {"title": "Derivationpath", "description": "The derivation path of this derivation", "type": "string"}, "outputPath": {"title": "Outputpath", "description": "The output path of this derivation", "type": "string"}, "outputs": {"title": "Outputs", "description": "A list of the derivation's output paths", "type": "array", "items": {"$ref": "#/definitions/Output"}}, "name": {"title": "Name", "description": "The name of the derivation", "type": "string"}, "parsedName": {"title": "Parsedname", "description": "The parsed derivation name and version of the derivation by Nix builtins", "allOf": [{"$ref": "#/definitions/ParsedName"}]}, "nixpkgsMetadata": {"title": "Nixpkgsmetadata", "description": "Optional metadata specific to derivations from nixpkgs", "allOf": [{"$ref": "#/definitions/NixpkgsMetadata"}]}, "buildInputs": {"title": "Buildinputs", "description": "The derivation's build inputs", "type": "array", "items": {"$ref": "#/definitions/BuildInput"}}}, "required": ["attributePath", "derivationPath", "outputs", "name", "buildInputs"], "definitions": {"Output": {"title": "Output", "description": "An output of a derivation, as specified for multi-output derivations.", "type": "object", "properties": {"name": {"title": "Name", "description": "The output path's name (out, doc, dev, ...)", "type": "string"}, "outputPath": {"title": "Outputpath", "description": "The output path", "type": "string"}}, "required": ["name", "outputPath"]}, "ParsedName": {"title": "ParsedName", "description": "The parsed output of the builtins.parseDrvName function.", "type": "object", "properties": {"name": {"title": "Name", "description": "The derivation name of the Nix derivation", "type": "string"}, "version": {"title": "Version", "description": "The version of the Nix derivation", "type": "string"}}, "required": ["version"]}, "NixpkgsMetadata": {"title": "NixpkgsMetadata", "description": "Derivation metadata defined by nixpkgs specifically.", "type": "object", "properties": {"pname": {"title": "Pname", "description": "The pname attribute of the Nix derivation", "type": "string"}, "version": {"title": "Version", "description": "The derivation's version", "type": "string"}, "broken": {"title": "Broken", "description": "Flag indicating whether the derivation is broken", "type": "boolean"}, "license": {"title": "License", "description": "The derivation's license", "type": "string"}}, "required": ["version", "broken", "license"]}, "BuildInputType": {"title": "BuildInputType", "description": "The type of build input. In Nix there are three different types.", "enum": ["build_input", "propagated_build_input", "native_build_input"]}, "BuildInput": {"title": "BuildInput", "description": "A build input to a Nix derivation", "type": "object", "properties": {"attributePath": {"title": "Attributepath", "description": "Attribute path from the flake derivation set", "type": "string"}, "buildInputType": {"description": "The type of build input", "allOf": [{"$ref": "#/definitions/BuildInputType"}]}, "outputPath": {"title": "Outputpath", "description": "The output path of the input derivation", "type": "string"}}, "required": ["attributePath", "buildInputType"]}}}