-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (39 loc) · 1.18 KB
/
flake.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
{
inputs = {
nixpkgs.url = "github:NickCao/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
};
androidPkgs = pkgs.androidenv.composeAndroidPackages {
/*
toolsVersion = "26.1.1";
platformToolsVersion = "31.0.3";
includeEmulator = false;
emulatorVersion = "30.9.0";
*/
buildToolsVersions = [ "30.0.3" ];
platformVersions = [ "31" "33" ];
};
in
{
devShell = pkgs.mkShell {
JAVA_HOME = "${pkgs.jdk17}/lib/openjdk";
nativeBuildInputs = with pkgs; [
steam-run
];
env = {
ANDROID_SDK_ROOT = "${androidPkgs.androidsdk}/libexec/android-sdk";
# GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidPkgs.androidsdk}/libexec/android-sdk/build-tools/30.0.3/aapt2";
};
};
});
}