Reduce verbosity of packageOverride docs further
This commit is contained in:
parent
20dadec264
commit
018062529a
@ -67,16 +67,20 @@
|
|||||||
<filename>lib/licenses.nix</filename> of the nix package tree.
|
<filename>lib/licenses.nix</filename> of the nix package tree.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<section><title>Modify packages via<literal>packageOverrides</literal></title>
|
<section><title>Modify packages via <literal>packageOverrides</literal></title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<filename>~/.nixpkgs/config.nix</filename> enables the user to
|
|
||||||
override package names without creating a fork of Nixpkgs. This is
|
You can define a function called <varname>packageOverrides</varname>
|
||||||
accomplished by defining a function called
|
in your local <filename>~/.nixpkgs/config</filename> to overide nix
|
||||||
<varname>packageOverrides</varname>. It is expected to take the set
|
packages. It must be a function that takes pkgs as an argument and
|
||||||
of packages, usually called <varname>pkgs</varname>, and returns a
|
return modified set of packages.
|
||||||
modified set of packages. It is called when evaluating any nix
|
|
||||||
expression in the <varname>pkgs</varname> set.
|
<programlisting>{
|
||||||
|
packageOverrides = pkgs: rec {
|
||||||
|
foo = pkgs.foo.override { ... };
|
||||||
|
};
|
||||||
|
}</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user