kexectools: Only build on kexecable architectures.

This commit is contained in:
Shea Levy 2018-02-24 10:37:54 -05:00
parent aaaa6f0a69
commit 63fa1fcb04
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 6 additions and 1 deletions

View file

@ -35,6 +35,9 @@ rec {
MinGW = { kernel = kernels.windows; abi = abis.gnu; };
Musl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
Kexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
[ "x86" "arm" "aarch64" "mips" ];
};
matchAnyAttrs = patterns:

View file

@ -3063,7 +3063,9 @@ with pkgs;
keepalived = callPackage ../tools/networking/keepalived { };
kexectools = callPackage ../os-specific/linux/kexectools { };
kexectools = if hostPlatform.isKexecable
then callPackage ../os-specific/linux/kexectools { }
else null;
keybase = callPackage ../tools/security/keybase { };