mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 06:03:20 +00:00
add android sdk
This commit is contained in:
parent
e882ace7a7
commit
eb9d8a704a
13
shell.nix
13
shell.nix
|
@ -1,5 +1,14 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> { config.android_sdk.accept_license = true; } }:
|
||||||
|
|
||||||
|
let
|
||||||
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||||
|
toolsVersion = "26.1.1";
|
||||||
|
platformToolsVersion = "33.0.2";
|
||||||
|
buildToolsVersions = [ "33.0.0" ];
|
||||||
|
};
|
||||||
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [ flutter dart ];
|
ANDROID_HOME= "${androidComposition.androidsdk}/libexec/android-sdk";
|
||||||
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
||||||
|
nativeBuildInputs = with pkgs; [ flutter dart openjdk11 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue