Skip to content

Commit 34c77ff

Browse files
authored
Merge pull request NixOS#14471 from obsidiansystems/derivation-options-json-test
FIx `DerivationOptions` JSON and clean up unit tests
2 parents af8e448 + d05e85e commit 34c77ff

File tree

11 files changed

+577
-299
lines changed

11 files changed

+577
-299
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"additionalSandboxProfile": "sandcastle",
3+
"allowLocalNetworking": true,
4+
"allowSubstitutes": false,
5+
"exportReferencesGraph": {
6+
"refs1": [
7+
"/164j69y6zir9z0339n8pjigg3rckinlr77bxsavzizdaaljb7nh9"
8+
],
9+
"refs2": [
10+
"/nix/store/qnml92yh97a6fbrs2m5qg5cqlc8vni58-bar.drv"
11+
]
12+
},
13+
"impureEnvVars": [
14+
"UNICORN"
15+
],
16+
"impureHostDeps": [
17+
"/usr/bin/ditto"
18+
],
19+
"noChroot": true,
20+
"outputChecks": {
21+
"forAllOutputs": {
22+
"allowedReferences": [
23+
"/164j69y6zir9z0339n8pjigg3rckinlr77bxsavzizdaaljb7nh9"
24+
],
25+
"allowedRequisites": [
26+
"/0nr45p69vn6izw9446wsh9bng9nndhvn19kpsm4n96a5mycw0s4z"
27+
],
28+
"disallowedReferences": [
29+
"/0nyw57wm2iicnm9rglvjmbci3ikmcp823czdqdzdcgsnnwqps71g"
30+
],
31+
"disallowedRequisites": [
32+
"/07f301yqyz8c6wf6bbbavb2q39j4n8kmcly1s09xadyhgy6x2wr8"
33+
],
34+
"ignoreSelfRefs": true,
35+
"maxClosureSize": null,
36+
"maxSize": null
37+
}
38+
},
39+
"passAsFile": [],
40+
"preferLocalBuild": true,
41+
"requiredSystemFeatures": [
42+
"rainbow",
43+
"uid-range"
44+
],
45+
"unsafeDiscardReferences": {}
46+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"additionalSandboxProfile": "sandcastle",
3+
"allowLocalNetworking": true,
4+
"allowSubstitutes": false,
5+
"exportReferencesGraph": {
6+
"refs1": [
7+
"/164j69y6zir9z0339n8pjigg3rckinlr77bxsavzizdaaljb7nh9"
8+
],
9+
"refs2": [
10+
"/nix/store/qnml92yh97a6fbrs2m5qg5cqlc8vni58-bar.drv"
11+
]
12+
},
13+
"impureEnvVars": [
14+
"UNICORN"
15+
],
16+
"impureHostDeps": [
17+
"/usr/bin/ditto"
18+
],
19+
"noChroot": true,
20+
"outputChecks": {
21+
"perOutput": {
22+
"bin": {
23+
"allowedReferences": null,
24+
"allowedRequisites": null,
25+
"disallowedReferences": [
26+
"/0nyw57wm2iicnm9rglvjmbci3ikmcp823czdqdzdcgsnnwqps71g"
27+
],
28+
"disallowedRequisites": [
29+
"/07f301yqyz8c6wf6bbbavb2q39j4n8kmcly1s09xadyhgy6x2wr8"
30+
],
31+
"ignoreSelfRefs": false,
32+
"maxClosureSize": null,
33+
"maxSize": null
34+
},
35+
"dev": {
36+
"allowedReferences": null,
37+
"allowedRequisites": null,
38+
"disallowedReferences": [],
39+
"disallowedRequisites": [],
40+
"ignoreSelfRefs": false,
41+
"maxClosureSize": 5909,
42+
"maxSize": 789
43+
},
44+
"out": {
45+
"allowedReferences": [
46+
"/164j69y6zir9z0339n8pjigg3rckinlr77bxsavzizdaaljb7nh9"
47+
],
48+
"allowedRequisites": [
49+
"/0nr45p69vn6izw9446wsh9bng9nndhvn19kpsm4n96a5mycw0s4z"
50+
],
51+
"disallowedReferences": [],
52+
"disallowedRequisites": [],
53+
"ignoreSelfRefs": false,
54+
"maxClosureSize": null,
55+
"maxSize": null
56+
}
57+
}
58+
},
59+
"passAsFile": [],
60+
"preferLocalBuild": true,
61+
"requiredSystemFeatures": [
62+
"rainbow",
63+
"uid-range"
64+
],
65+
"unsafeDiscardReferences": {}
66+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"additionalSandboxProfile": "sandcastle",
3+
"allowLocalNetworking": true,
4+
"allowSubstitutes": false,
5+
"exportReferencesGraph": {
6+
"refs1": [
7+
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
8+
],
9+
"refs2": [
10+
"/nix/store/vj2i49jm2868j2fmqvxm70vlzmzvgv14-bar.drv"
11+
]
12+
},
13+
"impureEnvVars": [
14+
"UNICORN"
15+
],
16+
"impureHostDeps": [
17+
"/usr/bin/ditto"
18+
],
19+
"noChroot": true,
20+
"outputChecks": {
21+
"forAllOutputs": {
22+
"allowedReferences": [
23+
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
24+
],
25+
"allowedRequisites": [
26+
"/nix/store/z0rjzy29v9k5qa4nqpykrbzirj7sd43v-foo-dev"
27+
],
28+
"disallowedReferences": [
29+
"/nix/store/r5cff30838majxk5mp3ip2diffi8vpaj-bar"
30+
],
31+
"disallowedRequisites": [
32+
"/nix/store/9b61w26b4avv870dw0ymb6rw4r1hzpws-bar-dev"
33+
],
34+
"ignoreSelfRefs": true,
35+
"maxClosureSize": null,
36+
"maxSize": null
37+
}
38+
},
39+
"passAsFile": [],
40+
"preferLocalBuild": true,
41+
"requiredSystemFeatures": [
42+
"rainbow",
43+
"uid-range"
44+
],
45+
"unsafeDiscardReferences": {}
46+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"additionalSandboxProfile": "",
3+
"allowLocalNetworking": false,
4+
"allowSubstitutes": true,
5+
"exportReferencesGraph": {},
6+
"impureEnvVars": [],
7+
"impureHostDeps": [],
8+
"noChroot": false,
9+
"outputChecks": {
10+
"forAllOutputs": {
11+
"allowedReferences": null,
12+
"allowedRequisites": null,
13+
"disallowedReferences": [],
14+
"disallowedRequisites": [],
15+
"ignoreSelfRefs": true,
16+
"maxClosureSize": null,
17+
"maxSize": null
18+
}
19+
},
20+
"passAsFile": [],
21+
"preferLocalBuild": false,
22+
"requiredSystemFeatures": [],
23+
"unsafeDiscardReferences": {}
24+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"additionalSandboxProfile": "sandcastle",
3+
"allowLocalNetworking": true,
4+
"allowSubstitutes": false,
5+
"exportReferencesGraph": {
6+
"refs1": [
7+
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
8+
],
9+
"refs2": [
10+
"/nix/store/vj2i49jm2868j2fmqvxm70vlzmzvgv14-bar.drv"
11+
]
12+
},
13+
"impureEnvVars": [
14+
"UNICORN"
15+
],
16+
"impureHostDeps": [
17+
"/usr/bin/ditto"
18+
],
19+
"noChroot": true,
20+
"outputChecks": {
21+
"perOutput": {
22+
"bin": {
23+
"allowedReferences": null,
24+
"allowedRequisites": null,
25+
"disallowedReferences": [
26+
"/nix/store/r5cff30838majxk5mp3ip2diffi8vpaj-bar"
27+
],
28+
"disallowedRequisites": [
29+
"/nix/store/9b61w26b4avv870dw0ymb6rw4r1hzpws-bar-dev"
30+
],
31+
"ignoreSelfRefs": false,
32+
"maxClosureSize": null,
33+
"maxSize": null
34+
},
35+
"dev": {
36+
"allowedReferences": null,
37+
"allowedRequisites": null,
38+
"disallowedReferences": [],
39+
"disallowedRequisites": [],
40+
"ignoreSelfRefs": false,
41+
"maxClosureSize": 5909,
42+
"maxSize": 789
43+
},
44+
"out": {
45+
"allowedReferences": [
46+
"/nix/store/p0hax2lzvjpfc2gwkk62xdglz0fcqfzn-foo"
47+
],
48+
"allowedRequisites": [
49+
"/nix/store/z0rjzy29v9k5qa4nqpykrbzirj7sd43v-foo-dev"
50+
],
51+
"disallowedReferences": [],
52+
"disallowedRequisites": [],
53+
"ignoreSelfRefs": false,
54+
"maxClosureSize": null,
55+
"maxSize": null
56+
}
57+
}
58+
},
59+
"passAsFile": [],
60+
"preferLocalBuild": true,
61+
"requiredSystemFeatures": [
62+
"rainbow",
63+
"uid-range"
64+
],
65+
"unsafeDiscardReferences": {}
66+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"additionalSandboxProfile": "",
3+
"allowLocalNetworking": false,
4+
"allowSubstitutes": true,
5+
"exportReferencesGraph": {},
6+
"impureEnvVars": [],
7+
"impureHostDeps": [],
8+
"noChroot": false,
9+
"outputChecks": {
10+
"perOutput": {}
11+
},
12+
"passAsFile": [],
13+
"preferLocalBuild": false,
14+
"requiredSystemFeatures": [],
15+
"unsafeDiscardReferences": {}
16+
}

0 commit comments

Comments
 (0)