-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
32 lines (31 loc) · 737 Bytes
/
Copy pathshell.nix
File metadata and controls
32 lines (31 loc) · 737 Bytes
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
{ pkgs ? import <nixpkgs> {
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
},
buildToolsVersion ? "30.0.3"
}:
let
# Define Android SDK
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [ buildToolsVersion "28.0.3" ];
platformVersions = [ "34" "30" "28" ];
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
};
androidSdk = androidComposition.androidsdk;
in
pkgs.mkShell {
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
buildInputs = [
pkgs.flutter
androidSdk # The customized SDK that we've made above
pkgs.jdk17
pkgs.pkg-config
pkgs.gtk3
pkgs.xorg.libX11
pkgs.glib
pkgs.dbus
pkgs.pcre2
];
}