nixpkgs-suyu/pkgs/top-level
Eelco Dolstra 3cfc942bdc * Added a function `applyGlobalOverrides' to return Nixpkgs with the
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
2010-09-03 10:46:18 +00:00
..
all-packages.nix * Added a function `applyGlobalOverrides' to return Nixpkgs with the 2010-09-03 10:46:18 +00:00
guile-2-test.nix guile-2-test: Remove `guile_1_9_coverage'. 2010-07-04 21:53:01 +00:00
haskell-packages.nix Minor syntactic simplification. 2010-09-03 07:16:57 +00:00
make-tarball.nix * Check eval-release.nix. 2010-08-19 14:33:44 +00:00
mingw.nix * Remove execute permission. 2006-09-11 13:37:46 +00:00
perl-packages.nix update some perl packages 2010-08-09 19:29:06 +00:00
platforms.nix Making the sheevaplug kernel have nfs4 server and client 2010-06-12 17:42:17 +00:00
python-packages.nix remove pdfssa4met again, because it was added by accident 2010-08-27 06:53:36 +00:00
release-cross.nix Attempt to cross-build Nix for GNU. 2010-06-22 13:02:31 +00:00
release-lib.nix Add recurseForRelease flag 2010-08-03 14:02:42 +00:00
release.nix Fixing Haskell Platform attribute names in release.nix. 2010-08-31 15:54:08 +00:00