almost working
This commit is contained in:
parent
828b93c43c
commit
4c1d9baa41
14 changed files with 1690 additions and 0 deletions
52
flake.nix
Normal file
52
flake.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
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 = ./.;
|
||||
|
||||
dartConfigHook = "packageRun build_runner build";
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
preInstall = "set -x";
|
||||
|
||||
meta = {
|
||||
homepage = "https://git.federated.nexus/Henry-Hiles/nexusbot";
|
||||
description = "A bot to automate the sign-up process for Federated Nexus.";
|
||||
mainProgram = "nexusbot";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [ lib.maintainers.quadradical ];
|
||||
};
|
||||
};
|
||||
};
|
||||
flake.nixosModules.default = import ./module.nix inputs.self;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue