2023-10-04 14:20:49 +02:00
|
|
|
{
|
|
|
|
description = "FabApp";
|
|
|
|
|
|
|
|
inputs = {
|
2023-10-13 15:48:51 +02:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2023-10-04 14:20:49 +02:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
2023-10-15 23:05:24 +02:00
|
|
|
flake = { };
|
2023-10-04 14:20:49 +02:00
|
|
|
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
|
|
|
|
# https://flake.parts/module-arguments.html#persystem-module-parameters
|
|
|
|
perSystem = { pkgs, system, ... }: {
|
2023-10-15 23:05:24 +02:00
|
|
|
|
2023-10-13 15:48:51 +02:00
|
|
|
_module.args.pkgs = import inputs.nixpkgs-unstable {
|
2023-10-04 14:20:49 +02:00
|
|
|
inherit system;
|
2023-10-13 15:48:51 +02:00
|
|
|
# https://flake.parts/overlays
|
2023-10-15 23:05:24 +02:00
|
|
|
# NOTE: zig overlay triggers issues with X11/GL libraries
|
|
|
|
# This might be misconfiguration on my end
|
|
|
|
overlays = [ ];
|
2023-12-20 22:42:14 +01:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
android_sdk.accept_license = true;
|
|
|
|
};
|
2023-10-04 14:20:49 +02:00
|
|
|
};
|
|
|
|
|
2023-10-13 15:48:51 +02:00
|
|
|
formatter = pkgs.nixfmt;
|
|
|
|
|
2023-10-04 14:20:49 +02:00
|
|
|
devShells.default = with pkgs;
|
2023-10-06 14:40:56 +02:00
|
|
|
mkShell {
|
2023-12-20 22:42:14 +01:00
|
|
|
LD_LIBRARY_PATH =
|
|
|
|
lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
|
|
|
ANDROID_HOME = "${androidenv.androidPkgs_9_0.androidsdk}/libexec/android-sdk";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
clang
|
|
|
|
just
|
|
|
|
|
|
|
|
godot_4
|
|
|
|
|
|
|
|
android-tools
|
|
|
|
androidenv.androidPkgs_9_0.androidsdk
|
|
|
|
androidenv.androidPkgs_9_0.platform-tools
|
|
|
|
jre_headless
|
|
|
|
];
|
2023-12-18 22:21:03 +01:00
|
|
|
buildInputs = [ sqlite ];
|
2023-10-04 14:20:49 +02:00
|
|
|
};
|
2023-10-04 14:20:49 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|