mirror of
https://github.com/NixOS/nix.git
synced 2025-12-08 18:11:02 +01:00
As discussed today at great length in the Nix meeting, we don't want to break the format, but we also don't want to impede the improvement of JSON formats. The solution is to add a new flag for control the output format. Note that prior to the release, we may want to replace `--json --json-format N` with `--json=N`, but this is being left for a separate PR, as we don't yet have `=` support for CLI flags.
796 B
796 B
{{#include store-object-info-v2-fixed.md}}
Examples
Minimal store object (content-addressed)
{{#include schema/store-object-info-v2/pure.json}}
Store object with impure fields
{{#include schema/store-object-info-v2/impure.json}}
Minimal store object (empty)
{{#include schema/store-object-info-v2/empty_pure.json}}
Store object with all impure fields
{{#include schema/store-object-info-v2/empty_impure.json}}
NAR info (minimal)
{{#include schema/nar-info-v2/pure.json}}
NAR info (with binary cache fields)
{{#include schema/nar-info-v2/impure.json}}