mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
The old string format is a holdover from the pre JSON days. It is not friendly to users who need to get the information out of it. Also introduce the sort of versioning we have for derivation for this format too.
45 lines
796 B
Markdown
45 lines
796 B
Markdown
{{#include store-object-info-v2-fixed.md}}
|
|
|
|
## Examples
|
|
|
|
### Minimal store object (content-addressed)
|
|
|
|
```json
|
|
{{#include schema/store-object-info-v2/pure.json}}
|
|
```
|
|
|
|
### Store object with impure fields
|
|
|
|
```json
|
|
{{#include schema/store-object-info-v2/impure.json}}
|
|
```
|
|
|
|
### Minimal store object (empty)
|
|
|
|
```json
|
|
{{#include schema/store-object-info-v2/empty_pure.json}}
|
|
```
|
|
|
|
### Store object with all impure fields
|
|
|
|
```json
|
|
{{#include schema/store-object-info-v2/empty_impure.json}}
|
|
```
|
|
|
|
### NAR info (minimal)
|
|
|
|
```json
|
|
{{#include schema/nar-info-v1/pure.json}}
|
|
```
|
|
|
|
### NAR info (with binary cache fields)
|
|
|
|
```json
|
|
{{#include schema/nar-info-v1/impure.json}}
|
|
```
|
|
|
|
<!-- need to convert YAML to JSON first
|
|
## Raw Schema
|
|
|
|
[JSON Schema for Store Object Info v1](schema/store-object-info-v2.json)
|
|
-->
|