treewide: use isAarch where appropriate

This commit is contained in:
Alyssa Ross 2022-07-30 16:18:27 +00:00
parent 64915e05bf
commit 5330c0a1af
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0
24 changed files with 30 additions and 32 deletions

View file

@ -18,7 +18,7 @@ rec {
];
qemuSerialDevice = if pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isRiscV then "ttyS0"
else if (with pkgs.stdenv.hostPlatform; isAarch32 || isAarch64 || isPower) then "ttyAMA0"
else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0"
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";
qemuBinary = qemuPkg: {