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
|
|
|
|
2003-11-03 10:22:00 +00:00
|
|
|
{system}: 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 =
|
2003-12-01 14:37:42 +00:00
|
|
|
if system == "i686-linux"
|
2004-03-11 17:26:14 +00:00
|
|
|
then stdenvs.stdenvLinuxPkgs
|
2004-02-19 16:33:10 +00:00
|
|
|
else stdenvs.stdenvNixPkgs;
|
2003-11-03 10:22:00 +00:00
|
|
|
}
|