2022-06-30 12:00:18 +00:00
|
|
|
{
|
|
|
|
description = "omemo_dart";
|
|
|
|
inputs = {
|
2022-08-02 13:03:58 +00:00
|
|
|
nixpkgs.url = "github:NANASHI0X74/nixpkgs/flutter-3-0-0";
|
2022-06-30 12:00:18 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2022-08-02 13:03:58 +00:00
|
|
|
config = {
|
|
|
|
android_sdk.accept_license = true;
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2022-06-30 12:00:18 +00:00
|
|
|
};
|
|
|
|
android = pkgs.androidenv.composeAndroidPackages {
|
|
|
|
# TODO: Find a way to pin these
|
|
|
|
#toolsVersion = "26.1.1";
|
|
|
|
#platformToolsVersion = "31.0.3";
|
|
|
|
#buildToolsVersions = [ "31.0.0" ];
|
|
|
|
#includeEmulator = true;
|
|
|
|
#emulatorVersion = "30.6.3";
|
|
|
|
platformVersions = [ "28" ];
|
|
|
|
includeSources = false;
|
|
|
|
includeSystemImages = true;
|
|
|
|
systemImageTypes = [ "default" ];
|
|
|
|
abiVersions = [ "x86_64" ];
|
|
|
|
includeNDK = false;
|
|
|
|
useGoogleAPIs = false;
|
|
|
|
useGoogleTVAddOns = false;
|
|
|
|
};
|
|
|
|
pinnedJDK = pkgs.jdk11;
|
|
|
|
in {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
flutter pinnedJDK android.platform-tools dart # Flutter/Android
|
|
|
|
gitlint jq # Code hygiene
|
|
|
|
ripgrep # General utilities
|
|
|
|
];
|
|
|
|
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
|
|
|
|
JAVA_HOME = pinnedJDK;
|
|
|
|
ANDROID_AVD_HOME = (toString ./.) + "/.android/avd";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|