-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
shell.nix
56 lines (51 loc) · 1.32 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ pkgs ? import <nixpkgs> {
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
}
}:
let
androidComposition = pkgs.androidenv.composeAndroidPackages {
cmdLineToolsVersion = "9.0";
toolsVersion = "26.1.1";
platformToolsVersion = "34.0.5";
buildToolsVersions = [ "30.0.3" "33.0.0" ];
includeEmulator = false;
emulatorVersion = "32.1.15";
platformVersions = [ "28" "29" "30" "33" ];
includeSources = false;
includeSystemImages = false;
systemImageTypes = [ "google_apis_playstore" ];
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
cmakeVersions = [ "3.22.1" ];
includeNDK = true;
ndkVersions = ["25.2.9519653"];
useGoogleAPIs = false;
useGoogleTVAddOns = false;
includeExtras = [
"extras;google;gcm"
];
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
# Flutter
flutter316
# Android dependencies
androidComposition.androidsdk
jdk17 # Updated to JDK 17
# Chrome
google-chrome
# Additional tools
git
which
unzip
];
# Set up environment variables
shellHook = ''
export ANDROID_HOME=${androidComposition.androidsdk}/libexec/android-sdk
export CHROME_EXECUTABLE=${pkgs.google-chrome}/bin/google-chrome-stable
export PATH=$PATH:$ANDROID_HOME/platform-tools
'';
}