nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit cd0bac270d7dbbbb79849a8fc22fb7d57db08605
parent d1de284af8035512396c7f4666e70b8e9b0559c6
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 29 Jun 2023 01:41:15 +0400

Add complgen

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/complgen/default.nix | 22++++++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -330,6 +330,7 @@ lib.makeScope newScope ( }; capture2text = libsForQt5.callPackage ./misc/capture2text { }; cfiles = callPackage ./misc/cfiles { }; + complgen = callPackage ./misc/complgen { }; csv2html = callPackage ./misc/csv2html { }; csvtools = callPackage ./misc/csvtools { }; dns-filter = callPackage ./misc/dns-filter { }; diff --git a/pkgs/misc/complgen/default.nix b/pkgs/misc/complgen/default.nix @@ -0,0 +1,22 @@ +{ stdenv, lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "complgen"; + version = "2023-06-28"; + + src = fetchFromGitHub { + owner = "adaszko"; + repo = "complgen"; + rev = "168e56f056613e1d4977237400dd7f7e92f84112"; + hash = "sha256-IRbQ8fNxy4jwSevxBhrP5ADWrO4NPYP/mnvhQr8cNCk="; + }; + + cargoHash = "sha256-0RnOjNYLnDwmzTXcjt4k4VxPR+XcKBovYENabKlK1lo="; + + meta = with lib; { + description = "Generate shell completions based on a BNF-like grammar"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + }; +}