added team command, added game command, added about command
added request module, added nfl module, among other items
This commit is contained in:
64
flake.nix
Normal file
64
flake.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.16)
|
||||
{
|
||||
description = "Discord bot for viewing football statistics, teams, team members, and more!";
|
||||
|
||||
inputs = {
|
||||
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
|
||||
|
||||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
|
||||
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
flake-schemas,
|
||||
nixpkgs,
|
||||
rust-overlay,
|
||||
}: let
|
||||
overlays = [
|
||||
rust-overlay.overlays.default
|
||||
(final: prev: {
|
||||
rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];};
|
||||
})
|
||||
];
|
||||
|
||||
supportedSystems = ["x86_64-linux" "aarch64-darwin" "aarch64-linux"];
|
||||
forEachSupportedSystem = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||
f {
|
||||
pkgs = import nixpkgs {inherit overlays system;};
|
||||
});
|
||||
in {
|
||||
schemas = flake-schemas.schemas;
|
||||
|
||||
devShells = forEachSupportedSystem ({pkgs}: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
rustToolchain
|
||||
cargo-bloat
|
||||
cargo-edit
|
||||
cargo-outdated
|
||||
cargo-udeps
|
||||
cargo-watch
|
||||
rust-analyzer
|
||||
curl
|
||||
git
|
||||
jq
|
||||
wget
|
||||
pkg-config-unwrapped
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
env = {
|
||||
RUST_BACKTRACE = "1";
|
||||
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
|
||||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user