1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "commit-formatter";
9 version = "0.3.0";
10
11 src = fetchFromGitHub {
12 owner = "Eliot00";
13 repo = "commit-formatter";
14 rev = "v${version}";
15 sha256 = "sha256-hXpHEtPj6lrYBAzz8ZrhK+L3RBB2K1VIAi81kFlFgxY=";
16 };
17
18 cargoHash = "sha256-rqIBDzZghz+fj96im+SNwnLV9jCRjRmh3Wd48z07XH0=";
19
20 meta = with lib; {
21 description = "CLI tool to help you write git commit";
22 homepage = "https://github.com/Eliot00/commit-formatter";
23 license = with licenses; [
24 asl20 # or
25 mit
26 ];
27 maintainers = with maintainers; [ elliot ];
28 mainProgram = "git-cf";
29 };
30}