mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-13 21:56:59 +05:30
nix: switch to manually composing the SDK
This commit is contained in:
parent
45e6684f9c
commit
9cb5dd26a5
1 changed files with 23 additions and 6 deletions
29
shell.nix
29
shell.nix
|
@ -1,8 +1,25 @@
|
||||||
{ pkgs ? import <nixpkgs> { config.android_sdk.accept_license = true; } }:
|
{ pkgs ? import <nixpkgs> { config.android_sdk.accept_license = true; } }:
|
||||||
|
|
||||||
(pkgs.buildFHSUserEnv {
|
let
|
||||||
name = "android-sdk-env";
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||||
targetPkgs = pkgs:
|
toolsVersion = "26.1.1";
|
||||||
(with pkgs; [ androidenv.androidPkgs_9_0.androidsdk gradle glibc zlib ]);
|
platformToolsVersion = "31.0.3";
|
||||||
runScript = "bash";
|
buildToolsVersions = [ "31.0.0" ];
|
||||||
}).env
|
includeEmulator = false;
|
||||||
|
emulatorVersion = "30.9.0";
|
||||||
|
platformVersions = [ "31" ];
|
||||||
|
includeSources = false;
|
||||||
|
includeSystemImages = false;
|
||||||
|
systemImageTypes = [ ];
|
||||||
|
abiVersions = [ ];
|
||||||
|
cmakeVersions = [ ];
|
||||||
|
includeNDK = false;
|
||||||
|
ndkVersions = [ ];
|
||||||
|
useGoogleAPIs = false;
|
||||||
|
useGoogleTVAddOns = false;
|
||||||
|
includeExtras = [ ];
|
||||||
|
};
|
||||||
|
in pkgs.mkShell rec {
|
||||||
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
||||||
|
buildInputs = with pkgs; [ gradle glibc zlib ];
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue