2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2023-05-24 13:37:59 +00:00
|
|
|
, crystal
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
# https://crystal-lang.org/2019/09/06/parallelism-in-crystal/
|
|
|
|
, multithreading ? true
|
|
|
|
, static ? stdenv.hostPlatform.isStatic
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
crystal.buildCrystalPackage rec {
|
|
|
|
pname = "blahaj";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.2.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GeopJr";
|
|
|
|
repo = "BLAHAJ";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-CmMF9jDKUo+c8dYc2UEHKdBDE4dgwExcRS5sSUsUJik=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildTargets = [ "${if static then "static" else "build"}${if multithreading then "_mt" else ""}" ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Gay sharks at your local terminal - lolcat-like CLI tool";
|
|
|
|
homepage = "https://blahaj.queer.software";
|
|
|
|
license = licenses.bsd2;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ aleksana cafkafk ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "blahaj";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|