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
|
|
|
|
2005-04-29 14:13:16 +02:00
|
|
|
{system ? __currentSystem}: 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
|
2005-05-10 14:59:28 +02:00
|
|
|
else if system == "i686-freebsd" then stdenvs.stdenvFreeBSDPkgs
|
2004-08-09 16:33:14 +02:00
|
|
|
else if system == "powerpc-darwin" then stdenvs.stdenvDarwinPkgs
|
2004-05-18 12:59:18 +02:00
|
|
|
else stdenvs.stdenvNativePkgs;
|
2003-11-03 11:22:00 +01:00
|
|
|
}
|