-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
31 lines (28 loc) · 946 Bytes
/
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
{
description = "software needed for publishing capcaitor apps";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; };
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
};
# androidsdk = pkgs.androidenv.androidPkgs_9_0.androidsdk;
androidPkgs = pkgs.androidenv.composeAndroidPackages {
platformVersions = [ "34" ];
buildToolsVersions = [ "30.0.3" ];
abiVersions = [ "x86" "x86_64" ];
};
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [ nodejs jdk11 androidPkgs.androidsdk glibc ];
shellHook = with pkgs; ''
export ANDROID_HOME="${androidPkgs.androidsdk}/libexec/android-sdk"
# export ANDROID_HOME="$PWD/android_home"
'';
};
};
}