commitmsgfmt: add updateScript and update (#452133)

This commit is contained in:
Masum Reza
2025-10-15 02:10:20 +00:00
committed by GitHub

View File

@@ -4,24 +4,26 @@
fetchFromGitLab,
testers,
commitmsgfmt,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "commitmsgfmt";
version = "1.6.0";
version = "1.7.0";
src = fetchFromGitLab {
owner = "mkjeldsen";
repo = "commitmsgfmt";
rev = "v${version}";
hash = "sha256-HEkPnTO1HeJg8gpHFSUTkEVBPWJ0OdfUhNn9iGfaDD4=";
hash = "sha256-6mMjDMWkpaKXqmyE2taV4pDa92Tdt4VEHHLdOpRHung=";
};
cargoHash = "sha256-cej+Jpp12QEaru1mecuXtIFDEnSBvTwpx0Vgp8s7jj8=";
cargoHash = "sha256-Ewn7NCFtl8phC5cFyLWZcGZy4w+huummzeuXFRn64lQ=";
passthru.tests.version = testers.testVersion {
package = commitmsgfmt;
command = "commitmsgfmt -V";
};
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://gitlab.com/mkjeldsen/commitmsgfmt";