moxxmpp/flake.nix

83 lines
2.1 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 = {
2023-03-08 19:47:49 +00:00
nixpkgs.url = "github:AtaraxiaSjel/nixpkgs/update/flutter";
2022-11-05 11:51:36 +00:00
flake-utils.url = "github:numtide/flake-utils";
};
2023-01-28 14:31:36 +00:00
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let
2022-11-05 11:51:36 +00:00
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;
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
pyyaml
requests
]);
moxxmppPubCache = import ./nix/pubcache.moxxmpp.nix {
inherit (pkgs) fetchzip runCommand;
};
2022-11-05 11:51:36 +00:00
in {
packages = {
moxxmppDartDocs = pkgs.callPackage ./nix/moxxmpp-docs.nix {
inherit (moxxmppPubCache) pubCache;
};
};
2022-11-05 11:51:36 +00:00
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
2023-01-28 14:31:36 +00:00
flutter pinnedJDK android.platform-tools dart # Dart
2022-11-05 11:53:23 +00:00
gitlint # Code hygiene
ripgrep # General utilities
2022-11-07 22:20:45 +00:00
# Flutter dependencies for Linux desktop
2022-11-07 22:20:45 +00:00
atk
cairo
clang
cmake
epoxy
gdk-pixbuf
glib
gtk3
harfbuzz
ninja
pango
pcre
pkg-config
xorg.libX11
xorg.xorgproto
2023-01-28 14:31:36 +00:00
# For the scripts in ./scripts/
pythonEnv
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:51:36 +00:00
JAVA_HOME = pinnedJDK;
};
});
}