diff --git a/doc/packageconfig.xml b/doc/packageconfig.xml index ec65fea6cc4c..44ce1974c6cf 100644 --- a/doc/packageconfig.xml +++ b/doc/packageconfig.xml @@ -67,16 +67,20 @@ lib/licenses.nix of the nix package tree. -
Modify packages via<literal>packageOverrides</literal> +
Modify packages via <literal>packageOverrides</literal> - ~/.nixpkgs/config.nix enables the user to - override package names without creating a fork of Nixpkgs. This is - accomplished by defining a function called - packageOverrides. It is expected to take the set - of packages, usually called pkgs, and returns a - modified set of packages. It is called when evaluating any nix - expression in the pkgs set. + + You can define a function called packageOverrides + in your local ~/.nixpkgs/config to overide nix + packages. It must be a function that takes pkgs as an argument and + return modified set of packages. + + { + packageOverrides = pkgs: rec { + foo = pkgs.foo.override { ... }; + }; +}