-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (35 loc) · 741 Bytes
/
shell.nix
File metadata and controls
38 lines (35 loc) · 741 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
33
34
35
36
37
38
let
nixpkgs = builtins.fetchTarball {
##this is nixpkgs-22.05 @ 27.05.2022
url = "https://github.com/NixOS/nixpkgs/archive/6efc186e6079ff3f328a2497ff3d36741ac60f6e.tar.gz";
};
defaultPkgs = import nixpkgs {
config = {
android_sdk = {
accept_license = true;
};
allowUnfree = true;
};
};
in
{ pkgs ? defaultPkgs }:
(pkgs.buildFHSUserEnv {
name = "android-sdk-env";
targetPkgs = pkgs: (with pkgs;
[
androidenv.androidPkgs_9_0.androidsdk
glibc
(gradle.override {
java = openjdk11;
})
android-studio
openjdk11
git
]);
profile = ''
export JAVA_HOME="${pkgs.openjdk11}/lib/openjdk"
'';
runScript = ''
bash
'';
}).env