You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Priority of this option when selecting a prefix: `1`.
11
19
@@ -22,7 +30,7 @@ with pkgs.lib;
22
30
type=types.nullOr(attrsNestedOftypes.str);
23
31
default={};
24
32
description=''
25
-
A leaf value becomes a `${flatOptionsType.name}.prefix`
33
+
A leaf value becomes a `(${flatOptionsType.name}) prefix`
26
34
of a `package` (`command`) with a matching path in `packages` (`commands`).
27
35
28
36
Priority of this option when selecting a prefix: `2`.
@@ -46,37 +54,38 @@ with pkgs.lib;
46
54
]));
47
55
default={};
48
56
description=''
49
-
A nested (max depth is ${toStringmaxDepth}) attrset of `${flatOptionsType.name}.package`-s
57
+
A nested (max depth is ${toStringmaxDepth}) attrset of `(${flatOptionsType.name}) package`-s
50
58
to describe in the devshell menu
51
59
and optionally bring to the environment.
52
60
53
61
A path to a leaf value is concatenated via `.`
54
-
and used as a suffix of `${flatOptionsType.name}.name`.
62
+
and used as a `(${flatOptionsType.name}) name`.
55
63
56
64
A leaf value can be of three types.
57
65
58
66
1. When a `string` with a value `<string>`,
59
67
devshell tries to resolve a derivation
60
-
`pkgs.<string>` and use it as a `${flatOptionsType.name}.package`.
68
+
`pkgs.<string>` and use it as a `(${flatOptionsType.name}) package`.
61
69
62
-
2. When a `derivation`, it's used as a `${flatOptionsType.name}.package`.
70
+
2. When a `derivation`, it's used as a `(${flatOptionsType.name}) package`.
63
71
64
72
3. When a list with two elements:
65
73
1. The first element is a `string`
66
-
that is used to select a `${flatOptionsType.name}.help`.
67
-
- Priority of this `string` (if present) when selecting a `${flatOptionsType.name}.help`: `4`.
74
+
that is used to select a `(${flatOptionsType.name}) help`.
75
+
- Priority of this `string` (if present) when selecting a `(${flatOptionsType.name}) help`: `4`.
68
76
69
77
Lowest priority: `1`.
70
78
2. The second element is interpreted as if
71
79
the leaf value were initially a `string` or a `derivation`.
72
80
73
-
Priority of `package.meta.description` (if present in the resolved `${flatOptionsType.name}.package`) when selecting a `${flatOptionsType.name}.help`: 2
81
+
Priority of `package.meta.description` (if present in the resolved `(${flatOptionsType.name}) package`)
82
+
when selecting a `(${flatOptionsType.name}) help`: 2
74
83
75
84
Lowest priority: `1`.
76
85
77
86
A user may prefer not to bring the environment some of the packages.
78
87
79
-
Priority of `expose = false` when selecting a `${flatOptionsType.name}.expose`: `1`.
88
+
Priority of `expose = false` when selecting a `(${flatOptionsType.name}) expose`: `1`.
80
89
81
90
Lowest priority: `1`.
82
91
'';
@@ -96,33 +105,33 @@ with pkgs.lib;
96
105
]));
97
106
default={};
98
107
description=''
99
-
A nested (max depth is ${toStringmaxDepth}) attrset of `${flatOptionsType.name}.command`-s
108
+
A nested (max depth is ${toStringmaxDepth}) attrset of `(${flatOptionsType.name}) command`-s
100
109
to describe in the devshell menu
101
110
and bring to the environment.
102
111
103
112
A path to a leaf value is concatenated via `.`
104
-
and used in the `${flatOptionsType.name}.name`.
113
+
and used in the `(${flatOptionsType.name}) name`.
105
114
106
115
A leaf value can be of two types.
107
116
108
-
1. When a `string`, it's used as a `${flatOptionsType.name}.command`.
117
+
1. When a `string`, it's used as a `(${flatOptionsType.name}) command`.
109
118
110
119
2. When a list with two elements:
111
120
1. the first element of type `string` with a value `<string>`
112
121
that is used to select a `help`;
113
122
114
-
Priority of the `<string>` (if present) when selecting a `${flatOptionsType.name}.help`: `4`
123
+
Priority of the `<string>` (if present) when selecting a `(${flatOptionsType.name}) help`: `4`
115
124
116
125
Lowest priority: `1`.
117
-
1. the second element of type `string` is used as a `command`.
126
+
1. the second element of type `string` is used as a `(${flatOptionsType.name}) command`.
118
127
'';
119
128
};
120
129
121
130
help=mkOption{
122
131
type=types.nullOrtypes.str;
123
-
default="no help message provided :(";
132
+
default="";
124
133
description=''
125
-
Priority of this option when selecting a `${flatOptionsType.name}.help`: `1`.
134
+
Priority of this option when selecting a `(${flatOptionsType.name}) help`: `1`.
126
135
127
136
Lowest priority: `1`.
128
137
'';
@@ -137,9 +146,11 @@ with pkgs.lib;
137
146
type=types.nullOr(attrsNestedOftypes.str);
138
147
default={};
139
148
description=''
140
-
A leaf value can be used as `${flatOptionsType.name}.help` for a `package` (`command`) with a matching path in `packages` (`commands`).
149
+
A leaf value can be used as `(${flatOptionsType.name}) help`
150
+
for a `(${flatOptionsType.name}) package` (`(${flatOptionsType.name}) command`)
151
+
with a matching path in `(${nestedOptionsType.name}) packages` (`(${nestedOptionsType.name}) commands`).
141
152
142
-
Priority of this option when selecting a `${flatOptionsType.name}.help`: `3`.
153
+
Priority of this option when selecting a `(${flatOptionsType.name}) help`: `3`.
143
154
144
155
Lowest priority: `1`.
145
156
'';
@@ -160,7 +171,7 @@ with pkgs.lib;
160
171
Otherwise, they can not be added to the environment,
161
172
but will be printed in the devshell description.
162
173
163
-
Priority of this option when selecting a `${flatOptionsType.name}.expose`: `2`.
174
+
Priority of this option when selecting a `(${flatOptionsType.name}) expose`: `2`.
164
175
165
176
Lowest priority: `1`.
166
177
'';
@@ -175,11 +186,13 @@ with pkgs.lib;
175
186
type=types.nullOr(attrsNestedOftypes.bool);
176
187
default={};
177
188
description=''
178
-
A nested (max depth is ${toStringmaxDepth}) attrset of `${flatOptionsType.name}.expose`-s.
189
+
A nested (max depth is ${toStringmaxDepth}) attrset of `(${flatOptionsType.name}) expose`-s.
179
190
180
-
A leaf value can be used as `${flatOptionsType.name}.expose` for a `package` (`command`) with a matching path in `packages` (`commands`).
191
+
A leaf value can be used as `(${flatOptionsType.name}) expose`
192
+
for a `(${flatOptionsType.name}) package` (`(${flatOptionsType.name}) command`)
193
+
with a matching path in `(${nestedOptionsType.name}) packages` (`(${nestedOptionsType.name}) commands`).
181
194
182
-
Priority of this option when selecting a `${flatOptionsType.name}.expose`: `3`.
195
+
Priority of this option when selecting a `(${flatOptionsType.name}) expose`: `3`.
0 commit comments