blob: e653fce2671a73d00c65100c21a6c3e786b178c4 (
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
25
26
27
28
29
30
31
32
|
{ lib
, rustPlatform
, fetchFromGitLab
, testers
, commitmsgfmt
}:
rustPlatform.buildRustPackage rec {
pname = "commitmsgfmt";
version = "1.6.0";
src = fetchFromGitLab {
owner = "mkjeldsen";
repo = "commitmsgfmt";
rev = "v${version}";
hash = "sha256-HEkPnTO1HeJg8gpHFSUTkEVBPWJ0OdfUhNn9iGfaDD4=";
};
cargoHash = "sha256-jTRB9ogFQGVC4C9xpGxsJYV3cnWydAJLMcjhzUPULTE=";
passthru.tests.version = testers.testVersion {
package = commitmsgfmt;
command = "commitmsgfmt -V";
};
meta = with lib; {
homepage = "https://gitlab.com/mkjeldsen/commitmsgfmt";
changelog = "https://gitlab.com/mkjeldsen/commitmsgfmt/-/raw/v${version}/CHANGELOG.md";
description = "Formats commit messages better than fmt(1) and Vim";
mainProgram = "commitmsgfmt";
license = licenses.asl20;
maintainers = with maintainers; [ mmlb ];
};
}
|