2003-11-02 18:42:19 +01: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 17:33:10 +01:00
|
|
|
# `all-packages-generic.nix' with one of the standard build
|
|
|
|
# environments defined in `stdenvs.nix'.
|
2003-10-30 18:01:49 +01:00
|
|
|
|
2003-11-03 11:22:00 +01:00
|
|
|
{system}: let {
|
2003-11-18 13:12:56 +01:00
|
|
|
allPackages = import ./all-packages-generic.nix;
|
2003-10-30 18:01:49 +01:00
|
|
|
|
2004-02-19 17:33:10 +01:00
|
|
|
stdenvs = import ./stdenvs.nix {inherit system allPackages;};
|
2003-11-02 18:42:19 +01:00
|
|
|
|
2003-11-02 23:25:26 +01:00
|
|
|
# Select the right instantiation.
|
2003-11-03 11:22:00 +01:00
|
|
|
body =
|
2004-05-18 12:59:18 +02:00
|
|
|
if system == "i686-linux" then stdenvs.stdenvLinuxPkgs
|
|
|
|
else if system == "powerpc-darwin7.3.0" then stdenvs.stdenvDarwinPkgs
|
|
|
|
else stdenvs.stdenvNativePkgs;
|
2003-11-03 11:22:00 +01:00
|
|
|
}
|