mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
- Use canonical content address JSON format for floating content addressed derivation outputs This keeps it more consistent. - Reorganize inputs into nested structure (`inputs.srcs` and `inputs.drvs`) This will allow for an easier to use, but less compact, alternative where `srcs` is just a list of derived paths. It also allows for other experiments for derivations with a different input structure, as I suspect will be needed for secure build traces.
102 lines
2.5 KiB
JSON
102 lines
2.5 KiB
JSON
{
|
|
"args": [
|
|
"-c",
|
|
"echo hello > $out"
|
|
],
|
|
"builder": "/bin/bash",
|
|
"env": {
|
|
"bin": "/nix/store/33qms3h55wlaspzba3brlzlrm8m2239g-advanced-attributes-structured-attrs-bin",
|
|
"dev": "/nix/store/wyfgwsdi8rs851wmy1xfzdxy7y5vrg5l-advanced-attributes-structured-attrs-dev",
|
|
"out": "/nix/store/7cxy4zx1vqc885r4jl2l64pymqbdmhii-advanced-attributes-structured-attrs"
|
|
},
|
|
"inputs": {
|
|
"drvs": {
|
|
"afc3vbjbzql750v2lp8gxgaxsajphzih-foo.drv": {
|
|
"dynamicOutputs": {},
|
|
"outputs": [
|
|
"dev",
|
|
"out"
|
|
]
|
|
},
|
|
"vj2i49jm2868j2fmqvxm70vlzmzvgv14-bar.drv": {
|
|
"dynamicOutputs": {},
|
|
"outputs": [
|
|
"dev",
|
|
"out"
|
|
]
|
|
}
|
|
},
|
|
"srcs": [
|
|
"vj2i49jm2868j2fmqvxm70vlzmzvgv14-bar.drv"
|
|
]
|
|
},
|
|
"name": "advanced-attributes-structured-attrs",
|
|
"outputs": {
|
|
"bin": {
|
|
"path": "33qms3h55wlaspzba3brlzlrm8m2239g-advanced-attributes-structured-attrs-bin"
|
|
},
|
|
"dev": {
|
|
"path": "wyfgwsdi8rs851wmy1xfzdxy7y5vrg5l-advanced-attributes-structured-attrs-dev"
|
|
},
|
|
"out": {
|
|
"path": "7cxy4zx1vqc885r4jl2l64pymqbdmhii-advanced-attributes-structured-attrs"
|
|
}
|
|
},
|
|
"structuredAttrs": {
|
|
"__darwinAllowLocalNetworking": true,
|
|
"__impureHostDeps": [
|
|
"/usr/bin/ditto"
|
|
],
|
|
"__noChroot": true,
|
|
"__sandboxProfile": "sandcastle",
|
|
"allowSubstitutes": false,
|
|
"builder": "/bin/bash",
|
|
"exportReferencesGraph": {
|
|
"refs1": [
|
|
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
|
|
],
|
|
"refs2": [
|
|
"/nix/store/vj2i49jm2868j2fmqvxm70vlzmzvgv14-bar.drv"
|
|
]
|
|
},
|
|
"impureEnvVars": [
|
|
"UNICORN"
|
|
],
|
|
"name": "advanced-attributes-structured-attrs",
|
|
"outputChecks": {
|
|
"bin": {
|
|
"disallowedReferences": [
|
|
"/nix/store/r5cff30838majxk5mp3ip2diffi8vpaj-bar"
|
|
],
|
|
"disallowedRequisites": [
|
|
"/nix/store/9b61w26b4avv870dw0ymb6rw4r1hzpws-bar-dev"
|
|
]
|
|
},
|
|
"dev": {
|
|
"maxClosureSize": 5909,
|
|
"maxSize": 789
|
|
},
|
|
"out": {
|
|
"allowedReferences": [
|
|
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
|
|
],
|
|
"allowedRequisites": [
|
|
"/nix/store/z0rjzy29v9k5qa4nqpykrbzirj7sd43v-foo-dev"
|
|
]
|
|
}
|
|
},
|
|
"outputs": [
|
|
"out",
|
|
"bin",
|
|
"dev"
|
|
],
|
|
"preferLocalBuild": true,
|
|
"requiredSystemFeatures": [
|
|
"rainbow",
|
|
"uid-range"
|
|
],
|
|
"system": "my-system"
|
|
},
|
|
"system": "my-system",
|
|
"version": 4
|
|
}
|