mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 15:54:32 +00:00
8853307a2f
Changelog: https://github.com/KeisukeYamashita/commitlint-rs/releases/tag/v0.2.2 Diff: https://github.com/KeisukeYamashita/commitlint-rs/compare/v0.1.12...v0.2.2
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
commitlint-rs,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
testers,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "commitlint-rs";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KeisukeYamashita";
|
|
repo = "commitlint-rs";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-9az7AJ4NXmisRZiCFTdHQBVatgEIdRuKU6ZEKVHEgnQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-6Ur4s8bMSQR9mfh6apsocle6KDIsQ6gzU5luXH7BP7M=";
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion { package = commitlint-rs; };
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Lint commit messages with conventional commit messages";
|
|
homepage = "https://keisukeyamashita.github.io/commitlint-rs";
|
|
changelog = "https://github.com/KeisukeYamashita/commitlint-rs/releases/tag/${src.rev}";
|
|
license = with lib.licenses; [
|
|
mit
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
croissong
|
|
getchoo
|
|
];
|
|
mainProgram = "commitlint";
|
|
platforms = with lib.platforms; unix ++ windows;
|
|
};
|
|
}
|