about summary refs log tree commit diff
path: root/lib/systems
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2022-06-26 07:05:23 +0900
committerJari Vetoniemi <mailroxas@gmail.com>2022-06-29 18:27:16 +0900
commit539222e8d4bafaf783814c747e0ace40affa3761 (patch)
treece3e8b28544c680ab1932c71fe0f8eb22326c947 /lib/systems
parent2a914f022c533d78a86a23d99fe72952af1be990 (diff)
canExecute: check for android
Diffstat (limited to 'lib/systems')
-rw-r--r--lib/systems/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index d9d0918c1cc69..25340825c4b5e 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -36,6 +36,7 @@ rec {
       config = parse.tripleFromSystem final.parsed;
       # Determine whether we can execute binaries built for the provided platform.
       canExecute = platform:
+        final.isAndroid == platform.isAndroid &&
         parse.isCompatible final.parsed.cpu platform.parsed.cpu
         && final.parsed.kernel == platform.parsed.kernel;
       isCompatible = _: throw "2022-05-23: isCompatible has been removed in favor of canExecute, refer to the 22.11 changelog for details";