Added a wrapper function to produce a GHC with a predefined set of packages.

svn path=/nixpkgs/trunk/; revision=30716
This commit is contained in:
Andres Löh
2011-12-03 16:19:43 +00:00
parent 72e5c8176e
commit ecf037f2f7
2 changed files with 76 additions and 0 deletions

View File

@@ -107,6 +107,15 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
ghc = ghc;
};
# An experimental wrapper around ghcPlain that does not automatically
# pick up packages from the profile, but instead has a fixed set of packages
# in its global database. The set of packages can be specified as an
# argument to this function.
ghcWithPackages = pkgs : callPackage ../development/compilers/ghc/with-packages.nix {
packages = pkgs self;
};
# This is the Cabal builder, the function we use to build most Haskell
# packages. It isn't the Cabal library, which is a core package of GHC
# and therefore not separately listed here.