3cfc942bdc
specified overrides applied. This does the same as the `packageOverrides' attribute in ~/.nixpkgs/config.nix, but can be used within all-packages.nix to do a "deep" override for some specific package. For instance, to build Thunderbird with an older version of Glib, you can say: thunderbird3 = let pkgs = applyGlobalOverrides (pkgsOrig: { gtkLibs220 = pkgsOrig.gtkLibs220 // { glib = pkgsOrig.gtkLibs218.glib; }; }); in pkgs.callPackage .../thunderbird/3.x.nix { inherit (pkgs.gnome) libIDL; }; Note that `pkgsFun' now has an argument `pkgs' to refer to its own result. * Moved callPackage etc. into pkgsFun so that it uses the right overriden packages, if applicable. `defaultScope' isn't in the result set because that causes nix-env to go into an apparently infinite recursion. * Dropped the optional pkgsOrig argument to ~/.nixpkgs/config.nix, because it's probably not useful or used. svn path=/nixpkgs/trunk/; revision=23613 |
||
---|---|---|
doc | ||
maintainers | ||
pkgs | ||
COPYING | ||
default.nix | ||
STABLE | ||
VERSION |