diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/configuration.xml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/configuration.xml b/doc/configuration.xml index b497fa4e2722c..0d9786c2d6a29 100644 --- a/doc/configuration.xml +++ b/doc/configuration.xml @@ -179,11 +179,10 @@ allows unfree packages named flash player and visual studio code: <programlisting> { - allowUnfreePredicate = (pkg: builtins.elem - (builtins.parseDrvName pkg.name).name [ - "flashplayer" - "vscode" - ]); + allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "flashplayer" + "vscode" + ]; } </programlisting> </para> @@ -273,7 +272,7 @@ very short names: <programlisting> { - allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) <= 5); + allowInsecurePredicate = (pkg: (builtins.stringLength (lib.getName pkg) <= 5); } </programlisting> </para> |