flight/flake.nix
2026-04-17 22:53:00 -04:00

76 lines
1.8 KiB
Nix

{
description = "Flight Flutter Flake";
inputs = {
self.submodules = true;
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
nix2flatpak.url = "github:neobrain/nix2flatpak";
};
outputs =
{
flake-parts,
nixpkgs,
self,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{
lib,
pkgs,
system,
...
}:
{
_module.args.pkgs = import nixpkgs {
inherit system;
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
};
# packages =
# let
# default = pkgs.callPackage ./linux/nix/pkg {
# src = self;
# };
# in
# {
# inherit default;
# flatpak = inputs.nix2flatpak.lib.${system}.mkFlatpak {
# appName = "Flight";
# developer = "QuadRadical";
# appId = "flight.federated.Flight";
# package = default;
# runtime = "org.gnome.Platform/49";
# permissions = {
# share = [ "network" ];
# sockets = [
# "fallback-x11"
# "wayland"
# ];
# devices = [ "dri" ];
# };
# };
# gomuks = pkgs.callPackage ./linux/nix/pkg/gomuks.nix {
# src = self;
# };
# };
devShells.default = pkgs.callPackage ./linux/nix/devshell.nix { };
};
};
}