codesnap: init at 0.8.2 (#364266)
[NixPkgs.git] / pkgs / by-name / bl / blahaj / package.nix
blob258da854cfb8839538bec31f9306dc044bac533a
2   lib,
3   stdenv,
4   crystal,
5   fetchFromGitHub,
6   # https://crystal-lang.org/2019/09/06/parallelism-in-crystal/
7   multithreading ? true,
8   static ? stdenv.hostPlatform.isStatic,
9 }:
11 crystal.buildCrystalPackage rec {
12   pname = "blahaj";
13   version = "2.2.0";
15   src = fetchFromGitHub {
16     owner = "GeopJr";
17     repo = "BLAHAJ";
18     rev = "v${version}";
19     hash = "sha256-CmMF9jDKUo+c8dYc2UEHKdBDE4dgwExcRS5sSUsUJik=";
20   };
22   buildTargets = [ "${if static then "static" else "build"}${if multithreading then "_mt" else ""}" ];
24   meta = with lib; {
25     description = "Gay sharks at your local terminal - lolcat-like CLI tool";
26     homepage = "https://blahaj.queer.software";
27     license = licenses.bsd2;
28     maintainers = with maintainers; [
29       aleksana
30       cafkafk
31     ];
32     mainProgram = "blahaj";
33   };