initial commit

This commit is contained in:
L-Nafaryus 2023-06-02 15:32:53 +05:00
commit 4788157455
6 changed files with 50 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

BIN
discord_bot Executable file

Binary file not shown.

14
discord_bot.nimble Normal file
View File

@ -0,0 +1,14 @@
# Package
version = "0.1.0"
author = "L-Nafaryus"
description = "Discord bot with nim"
license = "MIT"
srcDir = "src"
bin = @["discord_bot"]
# Dependencies
requires "nim >= 1.6.8"
requires "dimscord"

19
flake.nix Normal file
View File

@ -0,0 +1,19 @@
{
description = "my project description";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs { inherit system overlays };
in
{
devShells.default = import ./shell.nix { inherit pkgs; };
}
);
}

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
nixpkgs-fmt
];
shellHook = ''
# ...
'';
}

5
src/discord_bot.nim Normal file
View File

@ -0,0 +1,5 @@
# This is just an example to get you started. A typical binary package
# uses this file as the main entry point of the application.
when isMainModule:
echo("Hello, World!")