git.iko.soy/typeable/nixpkgs
on master help sign in
Reduce verbosity of packageOverrides description.
commit20dadec2642c9b449dffd26aac50687ffeaef243 authorSebastian Jordan <sebastian.jordan.mail@googlemail.com> dateMon 20 Apr 2015, 22:48 (12 years ago) parent8a78dcc
1 file changed+7−28
doc/packageconfig.xml+7−28
doc/packageconfig.xml+7−28
@@ -4,8 +4,6 @@
44
55<title><filename>~/.nixpkgs/config.nix</filename>: global configuration</title>
66
7−<section><title>Allow unfree software</title>
8−
97 <para>
108 Nix packages can be configured to allow or deny certain options.
119 </para>
@@ -68,37 +66,18 @@
6866 A complete list of licenses can be found in the file
6967 <filename>lib/licenses.nix</filename> of the nix package tree.
7068 </para>
71−</section>
7269
73−<section><title>Overriding existing packages</title>
70+<section><title>Modify packages via<literal>packageOverrides</literal></title>
7471
7572<para>
7673 <filename>~/.nixpkgs/config.nix</filename> enables the user to
77− override package names without creating a fork of the Nixpkgs.
78− This is accomplished by defining a function called
79− <varname>packageOverrides</varname>. It takes the set of
80− packages, usually called <varname>pkgs</varname>, and returns a
81− modified set of packages.
82−</para>
83−<para>
84− Here is an example. Say we want to install
85− <varname>xbmc</varname> but we want to use another Python
86− version when running <varname>xbmc</varname>.
87−
88−<programlisting>
89−packageOverrides = pkgs: rec {
90− xbmc = pkgs.xbmc.override {
91− python = pkgs.python26;
92− };
93−};
94−</programlisting>
95−
96− Further information is available at the <command
97− xlink:href="https://nixos.org/wiki/Nix_Modifying_Packages">Nix
98− wiki</command>
99−
74+ override package names without creating a fork of Nixpkgs. This is
75+ accomplished by defining a function called
76+ <varname>packageOverrides</varname>. It is expected to take the set
77+ of packages, usually called <varname>pkgs</varname>, and returns a
78+ modified set of packages. It is called when evaluating any nix
79+ expression in the <varname>pkgs</varname> set.
10080</para>
101−
10281</section>
10382
10483</chapter>