mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
19 lines
391 B
Nix
19 lines
391 B
Nix
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
|
|
|
|
{ lib, config, system, targetSystem }:
|
|
|
|
let
|
|
arch = lib.strings.removeSuffix "-linux" targetSystem;
|
|
in
|
|
{
|
|
inherit system;
|
|
|
|
crossSystem = {
|
|
config = "${arch}-unknown-linux-android";
|
|
sdkVer = "32";
|
|
libc = "bionic";
|
|
useAndroidPrebuilt = false;
|
|
useLLVM = true;
|
|
isStatic = true;
|
|
};
|
|
}
|