mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
33 lines
875 B
Nix
33 lines
875 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";
|
|
mainProgram = "commitmsgfmt";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mmlb ];
|
|
};
|
|
}
|