From 2410bc603bd13746bc0c0591d1e70ced55bd0f85 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Mon, 28 Jan 2019 13:09:28 +0700 Subject: [PATCH] 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 --- modules/misc/nixpkgs.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/misc/nixpkgs.nix b/modules/misc/nixpkgs.nix index 287a74b2..150cbe74 100644 --- a/modules/misc/nixpkgs.nix +++ b/modules/misc/nixpkgs.nix @@ -144,7 +144,10 @@ in config = { _module.args = { 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 { }; }; }; }