about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/ameba/default.nix
blob: adf392669635e78349372373150207c4b63e8957 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitHub, fetchpatch, crystal }:

crystal.buildCrystalPackage rec {
  pname = "ameba";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "crystal-ameba";
    repo = "ameba";
    rev = "refs/tags/v${version}";
    hash = "sha256-TdyEnTloaciSpkPmnm+OM75sz9jaCaQ3VoDEepfescU=";
  };

  format = "make";

  meta = with lib; {
    description = "A static code analysis tool for Crystal";
    mainProgram = "ameba";
    homepage = "https://crystal-ameba.github.io";
    changelog = "https://github.com/crystal-ameba/ameba/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ kimburgess ];
  };
}