2003-11-02 12:42:19 -05: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 11:33:10 -05:00
|
|
|
# `all-packages-generic.nix' with one of the standard build
|
|
|
|
# environments defined in `stdenvs.nix'.
|
2003-10-30 12:01:49 -05:00
|
|
|
|
2005-04-29 08:13:16 -04:00
|
|
|
{system ? __currentSystem}: let {
|
2003-11-18 07:12:56 -05:00
|
|
|
allPackages = import ./all-packages-generic.nix;
|
2003-10-30 12:01:49 -05:00
|
|
|
|
2004-02-19 11:33:10 -05:00
|
|
|
stdenvs = import ./stdenvs.nix {inherit system allPackages;};
|
2003-11-02 12:42:19 -05:00
|
|
|
|
2003-11-02 17:25:26 -05:00
|
|
|
# Select the right instantiation.
|
2003-11-03 05:22:00 -05:00
|
|
|
body =
|
2004-05-18 06:59:18 -04:00
|
|
|
if system == "i686-linux" then stdenvs.stdenvLinuxPkgs
|
2005-05-10 08:59:28 -04:00
|
|
|
else if system == "i686-freebsd" then stdenvs.stdenvFreeBSDPkgs
|
2004-08-09 10:33:14 -04:00
|
|
|
else if system == "powerpc-darwin" then stdenvs.stdenvDarwinPkgs
|
2004-05-18 06:59:18 -04:00
|
|
|
else stdenvs.stdenvNativePkgs;
|
2003-11-03 05:22:00 -05:00
|
|
|
}
|