moxxmpp/flake.nix

67 lines
1.8 KiB
Nix
Raw Normal View History

2022-11-05 11:51:36 +00:00
{
2022-11-05 11:53:23 +00:00
description = "moxxmpp";
2022-11-05 11:51:36 +00:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
};
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.jdk;
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
2022-11-05 11:53:23 +00:00
flutter pinnedJDK android.platform-tools dart # Flutter/Android
gitlint # Code hygiene
2022-11-05 11:51:36 +00:00
ripgrep # General utilities
2022-11-07 22:20:45 +00:00
# Flutter dependencies for linux desktop
atk
cairo
clang
cmake
epoxy
gdk-pixbuf
glib
gtk3
harfbuzz
ninja
pango
pcre
pkg-config
xorg.libX11
xorg.xorgproto
2022-11-05 11:51:36 +00:00
];
2022-11-07 22:20:45 +00:00
CPATH = "${pkgs.xorg.libX11.dev}/include:${pkgs.xorg.xorgproto}/include";
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [ atk cairo epoxy gdk-pixbuf glib gtk3 harfbuzz pango ];
2022-11-07 22:20:45 +00:00
2022-11-05 11:53:23 +00:00
ANDROID_HOME = (toString ./.) + "/.android/sdk";
2022-11-05 11:51:36 +00:00
JAVA_HOME = pinnedJDK;
ANDROID_AVD_HOME = (toString ./.) + "/.android/avd";
};
});
}