commitmsgfmt: add updateScript and update (#452133)
This commit is contained in:
@@ -4,24 +4,26 @@
|
|||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
testers,
|
testers,
|
||||||
commitmsgfmt,
|
commitmsgfmt,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "commitmsgfmt";
|
pname = "commitmsgfmt";
|
||||||
version = "1.6.0";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "mkjeldsen";
|
owner = "mkjeldsen";
|
||||||
repo = "commitmsgfmt";
|
repo = "commitmsgfmt";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-HEkPnTO1HeJg8gpHFSUTkEVBPWJ0OdfUhNn9iGfaDD4=";
|
hash = "sha256-6mMjDMWkpaKXqmyE2taV4pDa92Tdt4VEHHLdOpRHung=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-cej+Jpp12QEaru1mecuXtIFDEnSBvTwpx0Vgp8s7jj8=";
|
cargoHash = "sha256-Ewn7NCFtl8phC5cFyLWZcGZy4w+huummzeuXFRn64lQ=";
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = commitmsgfmt;
|
package = commitmsgfmt;
|
||||||
command = "commitmsgfmt -V";
|
command = "commitmsgfmt -V";
|
||||||
};
|
};
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://gitlab.com/mkjeldsen/commitmsgfmt";
|
homepage = "https://gitlab.com/mkjeldsen/commitmsgfmt";
|
||||||
|
|||||||
Reference in New Issue
Block a user