lol
1{
2 lib,
3 fetchFromGitHub,
4 crystal,
5 coreutils,
6}:
7
8crystal.buildCrystalPackage rec {
9 pname = "ameba";
10 version = "1.6.4";
11
12 src = fetchFromGitHub {
13 owner = "crystal-ameba";
14 repo = "ameba";
15 tag = "v${version}";
16 hash = "sha256-2gEwgXjB6zcJQAdUGQfZFe8WcqT5fyb8Qbxk0qwn+c8=";
17 };
18
19 format = "make";
20 installFlags = [ "INSTALL_BIN=${coreutils}/bin/install" ];
21
22 meta = {
23 description = "Static code analysis tool for Crystal";
24 mainProgram = "ameba";
25 homepage = "https://crystal-ameba.github.io";
26 changelog = "https://github.com/crystal-ameba/ameba/releases/tag/v${version}";
27 license = lib.licenses.mit;
28 maintainers = with lib.maintainers; [ ];
29 };
30}