From 20dadec2642c9b449dffd26aac50687ffeaef243 Mon Sep 17 00:00:00 2001 From: Sebastian Jordan Date: Mon, 20 Apr 2015 22:48:28 +0200 Subject: [PATCH] Reduce verbosity of packageOverrides description. --- doc/packageconfig.xml | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) 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 @@ <filename>~/.nixpkgs/config.nix</filename>: 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 via<literal>packageOverrides</literal> ~/.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 - - -