diff --git a/doc/packageconfig.xml b/doc/packageconfig.xml
index cebbd5bf772..ec65fea6cc4 100644
--- a/doc/packageconfig.xml
+++ b/doc/packageconfig.xml
@@ -4,8 +4,6 @@
~/.nixpkgs/config.nix: global configuration
-Allow unfree software
-
Nix packages can be configured to allow or deny certain options.
@@ -68,37 +66,18 @@
A complete list of licenses can be found in the file
lib/licenses.nix of the nix package tree.
-
-Overriding existing packages
+Modify packages viapackageOverrides
~/.nixpkgs/config.nix enables the user to
- override package names without creating a fork of the Nixpkgs.
- This is accomplished by defining a function called
- packageOverrides. It takes the set of
- packages, usually called pkgs, and returns a
- modified set of packages.
+ 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.
-
- Here is an example. Say we want to install
- xbmc but we want to use another Python
- version when running xbmc.
-
-
-packageOverrides = pkgs: rec {
- xbmc = pkgs.xbmc.override {
- python = pkgs.python26;
- };
-};
-
-
- Further information is available at the Nix
- wiki
-
-
-