forked from FrankBeu/flutterFlake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
devshell.nix
82 lines (78 loc) · 1.51 KB
/
devshell.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{ pkgs, androidSdk, androidComposition, buildToolsVersion }:
with pkgs;
devshell.mkShell {
name = "flutter";
motd = ''
Entered the Android app development environment.
'';
env = let
javaHome = jdk11.home;
in [
{
name = "ANDROID_HOME";
value = "${androidSdk}/libexec/android-sdk";
}
{
name = "ANDROID_SDK_ROOT";
value = "${androidSdk}/libexec/android-sdk";
}
{
name = "JAVA_HOME";
value = javaHome;
}
{
name = "ANDROID_JAVA_HOME";
value = javaHome;
}
{
name = "CHROME_EXECUTABLE";
value = "${google-chrome}/bin/google-chrome-stable";
}
{
name = "FLUTTER_SDK";
value = "${flutter}";
}
{
name = "DART";
value = "${flutter}/bin/cache/dart-sdk/bin/dart";
}
{
name = "FLUTTER_ROOT";
value = "${flutter}";
}
{
name = "DART_SDK_PATH";
value = "${flutter}/bin/cache/dart-sdk";
}
{
name = "DART_SDK";
value = "${flutter}/bin/cache/dart-sdk";
}
{
name = "GRADLE_OPTS";
value = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/${buildToolsVersion}/aapt2";
}
];
packages = [
androidComposition.platform-tools
androidSdk
gradle
jdk11
pkg-config
clang
cmake
flutter
glib
glib.dev
google-chrome
gtk3
gtk3.dev
lcov
ninja
sqlite
sqlite-web
nodePackages.firebase-tools
sd
fd
];
}