2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "complgen";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.1.6";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adaszko";
|
|
|
|
repo = "complgen";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-FetiopX4k58JQP67zTh0ssy1HFJHmi0Op9h9vjH1pLE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-2EJuxoed+6LGpxxqkdFxbntilA2SihQScliUFYgjYmU=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate {bash,fish,zsh} completions from a single EBNF-like grammar";
|
|
|
|
homepage = "https://github.com/adaszko/complgen";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/adaszko/complgen/blob/${src.rev}/CHANGELOG.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|