1 { stdenv, lib, rustPlatform, fetchFromGitHub, Security }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "1gwqwxlvdrm4sdyqkvpvvfi6jh6qqn6qybn0z66wm06k62f8zj5b";
14 cargoHash = "sha256-jeRKtKv8Lg/ritl42dMbEQpXaNlCIaHTrw0xtPQitMc=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
19 description = "Simple command line tool for converting Chinese characters to space-separate pinyin words";
20 mainProgram = "pinyin-tool";
21 homepage = "https://github.com/briankung/pinyin-tool";
22 license = licenses.mit;
23 maintainers = with maintainers; [ neonfuz ];