mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
uwc: Init at 1.0.4
uwc is a Unicode-aware word counter with per-line mode written in Rust If applied, users will be able to count the number of unicode characters and words (e.g. Chinese characters) from files or through the pipe.
This commit is contained in:
parent
4d15dd3a08
commit
58fd07cc7b
24
pkgs/tools/text/uwc/default.nix
Normal file
24
pkgs/tools/text/uwc/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ rustPlatform, lib, fetchFromGitLab }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "uwc";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "dead10ck";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1ywqq9hrrm3frvd2sswknxygjlxi195kcy7g7phwq63j7hkyrn50";
|
||||
};
|
||||
|
||||
cargoSha256 = "0ra62cf75b1c4knxxpbdg8m0sy2k02r52j606fp5l9crp0fml8l0";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Like wc, but unicode-aware, and with per-line mode";
|
||||
homepage = "https://gitlab.com/dead10ck/uwc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ShamrockLee ];
|
||||
};
|
||||
}
|
@ -7901,6 +7901,8 @@ in
|
||||
|
||||
usync = callPackage ../applications/misc/usync { };
|
||||
|
||||
uwc = callPackage ../tools/text/uwc { };
|
||||
|
||||
uwsgi = callPackage ../servers/uwsgi { };
|
||||
|
||||
v2ray = callPackage ../tools/networking/v2ray { };
|
||||
|
Loading…
Reference in New Issue
Block a user