nixpkgs/pkgs/by-name/bl/blahaj/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
790 B
Nix
Raw Normal View History

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