From 539222e8d4bafaf783814c747e0ace40affa3761 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 26 Jun 2022 07:05:23 +0900 Subject: canExecute: check for android --- lib/systems/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/systems') 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"; -- cgit 1.4.1