CozyBot/flake.nix
2025-11-06 22:04:18 -05:00

51 lines
1.3 KiB
Nix

{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{
lib,
pkgs,
system,
...
}:
{
_module.args.pkgs = import inputs.nixpkgs { inherit system; };
devShells.default = pkgs.mkShell {
packages = with pkgs; [
just
dart
];
};
packages.default = pkgs.buildDartApplication {
pname = "cozybot";
version = "1.0.0";
src = ./.;
pubspecLock = lib.importJSON ./pubspec.lock.json;
preInstall = "set -x";
meta = {
homepage = "https://git.federated.nexus/Henry-Hiles/cozybot";
description = "A bot to automate records for CozyP.";
mainProgram = "cozybot";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.quadradical ];
};
};
};
flake.nixosModules.default = import ./module.nix inputs.self;
};
}