Browse Source

Add Nix Build thingy

master
Cassidy Dingenskirchen 7 months ago
parent
commit
b115a067f7
Signed by: StDingenskirchen GPG Key ID: 14FE9712CC42FE8B
3 changed files with 26 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +11
    -0
      default.nix
  3. +14
    -0
      shards.nix

+ 1
- 0
.gitignore View File

@@ -4,3 +4,4 @@
/.shards/
*.dwarf
.env
result

+ 11
- 0
default.nix View File

@@ -0,0 +1,11 @@
with import <nixpkgs> {};
crystal.buildCrystalPackage rec {
version = "0.1.0";
pname = "TildesAutolinkerBot";
src = ./.;

shardsFile = ./shards.nix;
crystalBinaries.TildesAutolinkerBot.src = "src/TildesAutolinkerBot.cr";

buildInputs = [ sqlite-interactive.dev ];
}

+ 14
- 0
shards.nix View File

@@ -0,0 +1,14 @@
{
discordcr = {
owner = "meew0";
repo = "discordcr";
rev = "1d40f5fa0c9069a817ddbb3daf26782607d69d7d";
sha256 = "0ydi34djq9v4vh27w489ldcvf528hjma5588d0vp573849szyp97";
};
dotenv = {
owner = "gdotdesign";
repo = "cr-dotenv";
rev = "v0.2.0";
sha256 = "0zi2y1j2546xjhdzn7icmry0cjv82cx2cqmpgx5ml37c2pnb7kp7";
};
}

Loading…
Cancel
Save