mirror of
https://github.com/NixOS/nix.git
synced 2025-12-11 19:41:04 +01:00
49 lines
1 KiB
Markdown
49 lines
1 KiB
Markdown
{{#include ../derivation-options-v1-fixed.md}}
|
|
|
|
## Examples
|
|
|
|
### Input-addressed derivations
|
|
|
|
#### Default options
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ia/derivation-options/defaults.json}}
|
|
```
|
|
|
|
#### All options set
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ia/derivation-options/all_set.json}}
|
|
```
|
|
|
|
#### Default options (structured attributes)
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ia/derivation-options/structuredAttrs_defaults.json}}
|
|
```
|
|
|
|
#### All options set (structured attributes)
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ia/derivation-options/structuredAttrs_all_set.json}}
|
|
```
|
|
|
|
### Content-addressed derivations
|
|
|
|
#### All options set
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ca/derivation-options/all_set.json}}
|
|
```
|
|
|
|
#### All options set (structured attributes)
|
|
|
|
```json
|
|
{{#include ../schema/derivation-options-v1/ca/derivation-options/structuredAttrs_all_set.json}}
|
|
```
|
|
|
|
<!-- need to convert YAML to JSON first
|
|
## Raw Schema
|
|
|
|
[JSON Schema for Derivation Options v1](schema/derivation-options-v1.json)
|
|
-->
|