summary refs log tree commit diff
path: root/pkgs/system/all-packages.nix
blob: 571986ec997f9c9b044e706491d201eab0238e6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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);
}