moxxy/flake.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

2021-12-21 15:15:45 +00:00
{
description = "Moxxy v2";
inputs = {
2022-08-16 16:51:51 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2021-12-21 15:15:45 +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-07-30 15:24:13 +00:00
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
2021-12-21 15:15:45 +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;
};
2022-08-07 09:23:29 +00:00
pinnedJDK = pkgs.jdk;
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
2022-02-17 12:03:33 +00:00
requests pyyaml # For the build scripts
pycryptodome # For the Monal UDP Logger
]);
2021-12-21 15:15:45 +00:00
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
2022-07-30 15:24:13 +00:00
flutter pinnedJDK android.platform-tools dart scrcpy # Flutter/Android
pythonEnv gnumake # Build scripts
gitlint jq # Code hygiene
ripgrep # General utilities
2021-12-21 15:15:45 +00:00
];
JAVA_HOME = pinnedJDK;
};
});
}