mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 14:19:16 +00:00
23 lines
855 B
Nix
23 lines
855 B
Nix
|
{
|
||
|
inputs.nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||
|
|
||
|
outputs = { self, nixpkgs-unstable }:
|
||
|
let
|
||
|
pkgs = import nixpkgs-unstable { config.allowUnfree = true; config.android_sdk.accept_license = true; };
|
||
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||
|
toolsVersion = "26.1.1";
|
||
|
platformToolsVersion = "33.0.2";
|
||
|
buildToolsVersions = [ "30.0.3" ];
|
||
|
platformVersions = [ "31" "30" "29" ];
|
||
|
};
|
||
|
in {
|
||
|
devShell.x86_64-linux = pkgs.mkShell {
|
||
|
JAVA_HOME = "${pkgs.openjdk11_headless.home}";
|
||
|
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
|
||
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
||
|
|
||
|
buildInputs = with pkgs; [ bash git androidComposition.androidsdk flutter openjdk11_headless ];
|
||
|
};
|
||
|
};
|
||
|
}
|