mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
765f546100
Diff: https://github.com/adaszko/complgen/compare/v0.1.2...v0.1.3 Changelog: https://github.com/adaszko/complgen/blob/v0.1.3/CHANGELOG.md
32 lines
781 B
Nix
32 lines
781 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "complgen";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adaszko";
|
|
repo = "complgen";
|
|
rev = "v${version}";
|
|
hash = "sha256-YKJleWnUZodPuJcWX8w06PH6q1SzeUXL8AjYr9i7+sY=";
|
|
};
|
|
|
|
cargoHash = "sha256-ytwhIcm4NeHDRzKNHaxo4ke+gridXKmiKHkPnACXV8o=";
|
|
|
|
# Cargo.lock is outdated
|
|
postConfigure = ''
|
|
cargo metadata --offline
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Generate {bash,fish,zsh} completions from a single EBNF-like grammar";
|
|
homepage = "https://github.com/adaszko/complgen";
|
|
changelog = "https://github.com/adaszko/complgen/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|