nixpkgs/pkgs/system/all-packages.nix
Eelco Visser f8f9f4d12c expression for strategoxt 0.9.5
svn path=/nixpkgs/trunk/; revision=863
2004-03-28 15:52:03 +00:00

17 lines
564 B
Nix

# 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
# `all-packages-generic.nix' with one of the standard build
# environments defined in `stdenvs.nix'.
{system}: let {
allPackages = import ./all-packages-generic.nix;
stdenvs = import ./stdenvs.nix {inherit system allPackages;};
# Select the right instantiation.
body =
if system == "i686-linux"
then stdenvs.stdenvLinuxPkgs
else (stdenvs.stdenvNixPkgs);
}