nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 846 B view raw
1{ 2 lib, 3 stdenv, 4 crystal_1_17, 5 fetchFromGitHub, 6 # https://crystal-lang.org/2019/09/06/parallelism-in-crystal/ 7 multithreading ? true, 8 static ? stdenv.hostPlatform.isStatic, 9}: 10 11let 12 crystal = crystal_1_17; 13in 14crystal.buildCrystalPackage rec { 15 pname = "blahaj"; 16 version = "2.2.0"; 17 18 src = fetchFromGitHub { 19 owner = "GeopJr"; 20 repo = "BLAHAJ"; 21 rev = "v${version}"; 22 hash = "sha256-CmMF9jDKUo+c8dYc2UEHKdBDE4dgwExcRS5sSUsUJik="; 23 }; 24 25 buildTargets = [ "${if static then "static" else "build"}${if multithreading then "_mt" else ""}" ]; 26 27 meta = { 28 description = "Gay sharks at your local terminal - lolcat-like CLI tool"; 29 homepage = "https://blahaj.geopjr.dev"; 30 license = lib.licenses.bsd2; 31 maintainers = with lib.maintainers; [ 32 aleksana 33 cafkafk 34 ]; 35 mainProgram = "blahaj"; 36 }; 37}