12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
19 rev = "ver.${version}";
20 sha256 = "sha256-JKudwA2C7gHihjPnsqPq5i7X8TvG8yQYZEG5f/xu3yo=";
28 ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
36 # TODO use more system dependencies
38 (lib.cmakeBool "USE_SYSTEM_RAPIDJSON" true)
42 updateScript = gitUpdater { rev-prefix = "ver."; };
46 homepage = "https://github.com/BYVoid/OpenCC";
47 license = licenses.asl20;
48 description = "Project for conversion between Traditional and Simplified Chinese";
50 Open Chinese Convert (OpenCC) is an opensource project for conversion between
51 Traditional Chinese and Simplified Chinese, supporting character-level conversion,
52 phrase-level conversion, variant conversion and regional idioms among Mainland China,
55 maintainers = with maintainers; [ sifmelcara ];
56 platforms = with platforms; linux ++ darwin;