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