This repository has been archived on 2021-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
custom-nix/joann-pupper-bot/default.nix

17 lines
590 B
Nix

{ stdenv, fetchgit, crystal, customCrystal, sqlite, openssl, pkg-config }:
let
url = "https://dev.danilafe.com/Crystal-Bots/joann-pupper-bot";
rev = "8d90b052a001a6101dc691a907a16de4fb0a26ee";
sha256 = "0r2xyfqj9v73y9il90f2mp2x5h79nbv4yhfsh79kn1w0li6nlx3s";
in
customCrystal {
inherit crystal;
pname = "joann-pupper-bot";
version = rev;
src = fetchgit { inherit url rev sha256; };
shardsFile = ./shards.nix;
gitShardsFile = ./git-shards.nix;
crystalBinaries.joann-pupper-bot.src = "src/joann-pupper-bot.cr";
buildInputs = [ sqlite openssl pkg-config ];
}