diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-18 23:10:39 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-19 13:02:17 -0600 |
commit | 32ddbe3da97657fbd6ebaff27303f72f572bd41f (patch) | |
tree | ede4c6cf571933f554fb128f6352b192b6033e47 /doc/configuration.xml | |
parent | 67d78be03673dff235e9477f968dd6d5b6cb1253 (diff) | |
download | nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar.gz nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar.bz2 nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar.lz nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar.xz nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.tar.zst nixpkgs-32ddbe3da97657fbd6ebaff27303f72f572bd41f.zip |
doc: typo fixes
Diffstat (limited to 'doc/configuration.xml')
-rw-r--r-- | doc/configuration.xml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/configuration.xml b/doc/configuration.xml index af74f3f9c01..624a5bb270a 100644 --- a/doc/configuration.xml +++ b/doc/configuration.xml @@ -132,7 +132,7 @@ </itemizedlist> <para> - The difference between an a package being unsupported on some system and + The difference between a package being unsupported on some system and being broken is admittedly a bit fuzzy. If a program <emphasis>ought</emphasis> to work on a certain platform, but doesn't, the platform should be included in <literal>meta.platforms</literal>, but marked @@ -175,11 +175,12 @@ </programlisting> </para> <para> - A more useful example, the following configuration allows only allows - flash player and visual studio code: + For a more useful example, try the following. This configuration + only allows unfree packages named flash player and visual studio + code: <programlisting> { - allowUnfreePredicate = (pkg: elem (builtins.parseDrvName pkg.name).name [ "flashplayer" "vscode" ]); + allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "flashplayer" "vscode" ]); } </programlisting> </para> @@ -286,8 +287,8 @@ <para> You can define a function called <varname>packageOverrides</varname> in your - local <filename>~/.config/nixpkgs/config.nix</filename> to override nix - packages. It must be a function that takes pkgs as an argument and return + local <filename>~/.config/nixpkgs/config.nix</filename> to override Nix + packages. It must be a function that takes pkgs as an argument and returns a modified set of packages. <programlisting> { |