nixpkgs/pkgs/system/all-packages.nix
Eelco Dolstra 7d876cc771 * In `all-packages.nix': use the current system as default for the
`system' argument.  This is so that importers of Nixpkgs don't have
  to specify a system explicitly anymore.

svn path=/nixpkgs/trunk/; revision=2938
2005-04-29 12:13:16 +00:00

18 lines
648 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 ? __currentSystem}: 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 if system == "powerpc-darwin" then stdenvs.stdenvDarwinPkgs
else stdenvs.stdenvNativePkgs;
}