mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 00:12:39 +03:00
Merge pull request #7484 from seppeljordan/re#4505
Document about packageOverrides (re issue #4505)
This commit is contained in:
commit
69777a7cb4
@ -67,4 +67,21 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
|
||||||
|
You can define a function called <varname>packageOverrides</varname>
|
||||||
|
in your local <filename>~/.nixpkgs/config</filename> to overide nix
|
||||||
|
packages. It must be a function that takes pkgs as an argument and
|
||||||
|
return modified set of packages.
|
||||||
|
|
||||||
|
<programlisting>{
|
||||||
|
packageOverrides = pkgs: rec {
|
||||||
|
foo = pkgs.foo.override { ... };
|
||||||
|
};
|
||||||
|
}</programlisting>
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
Loading…
Reference in New Issue
Block a user