504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
31 lines
841 B
Nix
31 lines
841 B
Nix
{ 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=";
|
|
};
|
|
cargoSha256 = "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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mmlb ];
|
|
};
|
|
}
|