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