mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 06:03:20 +00:00
16 lines
533 B
Nix
16 lines
533 B
Nix
{ pkgs ? import <unstable> { config.android_sdk.accept_license = true; } }:
|
|
|
|
let
|
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
|
toolsVersion = "26.1.1";
|
|
platformToolsVersion = "33.0.2";
|
|
buildToolsVersions = [ "30.0.3" ];
|
|
platformVersions = [ "31" "30" "29" ];
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
|
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
|
nativeBuildInputs = with pkgs; [ flutter openjdk11_headless ];
|
|
}
|