1{
2 lib,
3 commitlint-rs,
4 fetchFromGitHub,
5 nix-update-script,
6 rustPlatform,
7 testers,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "commitlint-rs";
12 version = "0.2.3";
13
14 src = fetchFromGitHub {
15 owner = "KeisukeYamashita";
16 repo = "commitlint-rs";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-rNCMvIVJ/aOTNMyAmwX3Ir6IjHf6wxZ1XlGIWp7omkQ=";
19 };
20
21 cargoHash = "sha256-+MPHEkL5/+yR5+aKTDTaVO9D/v2xccwSo7clo20H1G0=";
22
23 passthru = {
24 tests.version = testers.testVersion { package = commitlint-rs; };
25 updateScript = nix-update-script { };
26 };
27
28 meta = {
29 description = "Lint commit messages with conventional commit messages";
30 homepage = "https://keisukeyamashita.github.io/commitlint-rs";
31 changelog = "https://github.com/KeisukeYamashita/commitlint-rs/releases/tag/${src.rev}";
32 license = with lib.licenses; [
33 mit
34 asl20
35 ];
36 maintainers = with lib.maintainers; [
37 croissong
38 getchoo
39 ];
40 mainProgram = "commitlint";
41 platforms = with lib.platforms; unix ++ windows;
42 };
43}