mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 05:08:41 +00:00
canExecute: check for android
This commit is contained in:
parent
2a914f022c
commit
539222e8d4
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user