Merge pull request #314696 from croissong/init-commitlint-rs

commitlint-rs: init at 0.1.11
This commit is contained in:
h7x4 2024-06-14 17:25:14 +02:00 committed by GitHub
commit 53f95756e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,41 @@
{
fetchFromGitHub,
lib,
nix-update-script,
rustPlatform,
testers,
commitlint-rs,
}:
rustPlatform.buildRustPackage rec {
pname = "commitlint-rs";
version = "0.1.11";
src = fetchFromGitHub {
owner = "KeisukeYamashita";
repo = "commitlint-rs";
rev = "v${version}";
hash = "sha256-FrYXEh75H0u1rE1YNDL/B1gMYMG43jPDJGUMv9y5/3g=";
};
cargoHash = "sha256-W6HkLCUoylgQQc2fFprmJeLH8KtpVUD4+BXWbNECVZ4=";
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = commitlint-rs; };
};
meta = with lib; {
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 licenses; [
mit
asl20
];
mainProgram = "commitlint";
platforms = with platforms; unix ++ windows;
maintainers = with maintainers; [
croissong
getchoo
];
};
}