mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
0217d8b204
* Use the system Perl on all non-i686-linux platforms. * Don't build Python support in libxml2 on most platforms. svn path=/nixpkgs/trunk/; revision=3019
19 lines
716 B
Nix
19 lines
716 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 == "i686-freebsd" then stdenvs.stdenvFreeBSDPkgs
|
|
else if system == "powerpc-darwin" then stdenvs.stdenvDarwinPkgs
|
|
else stdenvs.stdenvNativePkgs;
|
|
}
|