nixpkgs: fix installation on non-x86

On non-x86 architectures (for example, aarch64) the installation of
home-manager fails indicating that it is attempting to select i686
packages for Linux and those aren't available.

Solution: make the condition for choosing these packages stricter
This commit is contained in:
Yurii Rashkovskii 2019-01-28 13:09:28 +07:00 committed by Robert Helgesson
parent 45cadbd4f3
commit 2410bc603b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -144,7 +144,10 @@ in
config = { config = {
_module.args = { _module.args = {
pkgs = _pkgs; pkgs = _pkgs;
pkgs_i686 = if _pkgs.stdenv.isLinux then _pkgs.pkgsi686Linux else {}; pkgs_i686 =
if _pkgs.stdenv.isLinux && _pkgs.stdenv.hostPlatform.isx86
then _pkgs.pkgsi686Linux
else { };
}; };
}; };
} }