2003-11-02 09:42:19 -08:00
|
|
|
# This file evaluates to a function that, when supplied with a system
|
|
|
|
# identifier, returns the set of all packages provided by the Nix
|
|
|
|
# Package Collection. It does this by supplying
|
2004-02-19 08:33:10 -08:00
|
|
|
# `all-packages-generic.nix' with one of the standard build
|
|
|
|
# environments defined in `stdenvs.nix'.
|
2003-10-30 09:01:49 -08:00
|
|
|
|
2003-11-03 02:22:00 -08:00
|
|
|
{system}: let {
|
2003-11-18 04:12:56 -08:00
|
|
|
allPackages = import ./all-packages-generic.nix;
|
2003-10-30 09:01:49 -08:00
|
|
|
|
2004-02-19 08:33:10 -08:00
|
|
|
stdenvs = import ./stdenvs.nix {inherit system allPackages;};
|
2003-11-02 09:42:19 -08:00
|
|
|
|
2003-11-02 14:25:26 -08:00
|
|
|
# Select the right instantiation.
|
2003-11-03 02:22:00 -08:00
|
|
|
body =
|
2004-05-18 03:59:18 -07:00
|
|
|
if system == "i686-linux" then stdenvs.stdenvLinuxPkgs
|
|
|
|
else if system == "powerpc-darwin7.3.0" then stdenvs.stdenvDarwinPkgs
|
|
|
|
else stdenvs.stdenvNativePkgs;
|
2003-11-03 02:22:00 -08:00
|
|
|
}
|