We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28edb9d commit 73b6567Copy full SHA for 73b6567
doc/using/configuration.chapter.md
@@ -154,11 +154,13 @@ There are several ways to tweak how Nix handles a package which has been marked
154
155
The `allowInsecurePredicate` option is a function which accepts a package and returns a boolean, much like `allowUnfreePredicate`.
156
157
- The following configuration example only allows insecure packages with very short names:
+ The following configuration example allows any version of the `ovftool` package:
158
159
```nix
160
{
161
- allowInsecurePredicate = pkg: builtins.stringLength (lib.getName pkg) <= 5;
+ allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) [
162
+ "ovftool"
163
+ ];
164
}
165
```
166
0 commit comments