forked from lix-project/lix
937e02e7b9
`Store::pathInfoToJSON` was a rather baroque functions, being full of parameters to support both parsed derivations and `nix path-info`. The common core of each, a simple `dValidPathInfo::toJSON` function, is factored out, but the rest of the logic is just duplicated and then specialized to its use-case (at which point it is no longer that duplicated). This keeps the human oriented CLI logic (which is currently unstable) and the core domain logic (export reference graphs with structured attrs, which is stable), separate, which I think is better.
19 lines
543 B
JSON
19 lines
543 B
JSON
{
|
|
"ca": "fixed:r:sha256:1lr187v6dck1rjh2j6svpikcfz53wyl3qrlcbb405zlh13x0khhh",
|
|
"deriver": "/nix/store/g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-bar.drv",
|
|
"narHash": "sha256-FePFYIlMuycIXPZbWi7LGEiMmZSX9FMbaQenWBzm1Sc=",
|
|
"narSize": 34878,
|
|
"path": "/nix/store/n5wkd9frr45pa74if5gpz9j7mifg27fh-foo",
|
|
"references": [
|
|
"/nix/store/g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-bar",
|
|
"/nix/store/n5wkd9frr45pa74if5gpz9j7mifg27fh-foo"
|
|
],
|
|
"registrationTime": 23423,
|
|
"signatures": [
|
|
"asdf",
|
|
"qwer"
|
|
],
|
|
"ultimate": true,
|
|
"valid": true
|
|
}
|