1{ lib, fetchFromGitHub, rustPlatform }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "commit-formatter";
5 version = "0.2.1";
6
7 src = fetchFromGitHub {
8 owner = "Eliot00";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "EYzhb9jJ4MzHxIbaTb1MxeXUgoxTwcnq5JdxAv2uNcA=";
12 };
13
14 cargoSha256 = "AeHQCoP1HOftlOt/Yala3AXocMlwwIXIO2i1AsFSvGQ=";
15
16 meta = with lib; {
17 description = "A CLI tool to help you write git commit";
18 homepage = "https://github.com/Eliot00/commit-formatter";
19 license = with licenses; [ asl20 /* or */ mit ];
20 maintainers = with maintainers; [ elliot ];
21 mainProgram = "git-cf";
22 };
23}