diff options
author | Sage Raflik <neonfuz@gmail.com> | 2021-08-06 19:49:37 -0500 |
---|---|---|
committer | Sage Raflik <neonfuz@gmail.com> | 2021-08-07 08:18:25 -0500 |
commit | 79282b5a99c91823b15d1b8cf2e5dc289f3e0db4 (patch) | |
tree | 6e74522f6806794342fd0b56825b8f9f5cb0fb5b /pkgs/tools/text | |
parent | 7adfe833325aaa9491fe74ad0418813f17eb7bce (diff) |
pinyin-tool: init at 0.1.3
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/pinyin-tool/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/text/pinyin-tool/default.nix b/pkgs/tools/text/pinyin-tool/default.nix new file mode 100644 index 0000000000000..9d98385933b10 --- /dev/null +++ b/pkgs/tools/text/pinyin-tool/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }: + +rustPlatform.buildRustPackage rec { + pname = "pinyin-tool"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "briankung"; + repo = pname; + rev = version; + sha256 = "1gwqwxlvdrm4sdyqkvpvvfi6jh6qqn6qybn0z66wm06k62f8zj5b"; + }; + + cargoSha256 = "1ixl4bsb8c8dmz9s28a2v5l5f2hi3g9xjy6ribmhybpwmfs4mr4d"; + + buildInputs = lib.optionals stdenv.isDarwin [ Security ]; + + meta = with lib; { + description = "A simple command line tool for converting Chinese characters to space-separate pinyin words"; + homepage = "https://github.com/briankung/pinyin-tool"; + license = licenses.mit; + maintainers = with maintainers; [ neonfuz ]; + }; +} |