Browse Source

Add Nix Build Thingy

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

+ 1
- 0
.gitignore View File

@ -5,3 +5,4 @@
*.dwarf
bampersand.sqlite3
.env
result

+ 11
- 0
default.nix View File

@ -0,0 +1,11 @@
with import <nixpkgs> {};
crystal.buildCrystalPackage rec {
version = "0.18.0";
pname = "Bampersand";
src = ./.;
shardsFile = ./shards.nix;
crystalBinaries.Bampersand.src = "src/Init.cr";
buildInputs = [ sqlite-interactive.dev ];
}

+ 26
- 0
shards.nix View File

@ -0,0 +1,26 @@
{
db = {
owner = "crystal-lang";
repo = "crystal-db";
rev = "v0.6.0";
sha256 = "1gf6ylzcb8ywpy6m7w7d49xnvn6q636xb86f3vh292s1kml3vm99";
};
discordcr = {
owner = "z64";
repo = "discordcr";
rev = "b667b7f770582bc339c332ee3581820b5fbb2804";
sha256 = "1sivmqdpspwfa5992p56597c2q09wljr3mv638ik34z3hhznivbz";
};
dotenv = {
owner = "gdotdesign";
repo = "cr-dotenv";
rev = "v0.2.0";
sha256 = "0zi2y1j2546xjhdzn7icmry0cjv82cx2cqmpgx5ml37c2pnb7kp7";
};
sqlite3 = {
owner = "crystal-lang";
repo = "crystal-sqlite3";
rev = "v0.13.0";
sha256 = "0myd9vvz40wnwl5ij1n1sva63nnmdbfv6xka5fb4y7v77l512y7c";
};
}

Loading…
Cancel
Save