-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (44 loc) · 1.05 KB
/
Copy pathflake.nix
File metadata and controls
47 lines (44 loc) · 1.05 KB
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
};
flutter = pkgs.flutterPackages.v3_38;
# Android
androidSdkArgs = {
buildToolsVersions = [ "30.0.3" ];
platformVersions = [ "34" ];
};
androidComposition = pkgs.androidenv.composeAndroidPackages androidSdkArgs;
androidSdk = androidComposition.androidsdk;
in
{
devShell =
with pkgs;
mkShell {
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
FLUTTER_ROOT = flutter;
buildInputs = [
androidSdk
flutter
];
};
}
);
}