48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
description = "HeidiBot for Discord";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
inputs.devshell.url = "github:numtide/devshell";
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
devshell,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
overlays = [devshell.overlays.default];
|
|
};
|
|
|
|
python = pkgs.python313.withPackages (p:
|
|
with p; [
|
|
python-dotenv
|
|
|
|
discordpy
|
|
pynacl # DiscordPy Voice Support
|
|
]);
|
|
in {
|
|
devShell = pkgs.devshell.mkShell {
|
|
name = "HeidiBot";
|
|
|
|
packages = with pkgs; [
|
|
python
|
|
# nodePackages.pyright # LSP
|
|
];
|
|
|
|
# Use $1 for positional args
|
|
commands = [
|
|
# {
|
|
# name = "";
|
|
# help = "";
|
|
# command = "";
|
|
# }
|
|
];
|
|
};
|
|
});
|
|
}
|