2022-04-26 14:13:47 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, python3 }:
|
2016-11-08 18:29:43 +00:00
|
|
|
|
2020-02-08 22:12:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opencc";
|
2022-12-25 02:25:05 +00:00
|
|
|
version = "1.1.6";
|
2020-02-08 22:12:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BYVoid";
|
|
|
|
repo = "OpenCC";
|
|
|
|
rev = "ver.${version}";
|
2022-12-25 02:25:05 +00:00
|
|
|
sha256 = "sha256-0aIYnUuG5XATruxwY6+LZbEdKkHP3X1N1ueVE7R37Qk=";
|
2016-11-08 18:29:43 +00:00
|
|
|
};
|
|
|
|
|
2022-04-26 14:13:47 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2016-11-08 18:29:43 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-08 22:12:17 +00:00
|
|
|
homepage = "https://github.com/BYVoid/OpenCC";
|
2016-11-08 18:29:43 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "A project for conversion between Traditional and Simplified Chinese";
|
|
|
|
longDescription = ''
|
|
|
|
Open Chinese Convert (OpenCC) is an opensource project for conversion between
|
|
|
|
Traditional Chinese and Simplified Chinese, supporting character-level conversion,
|
|
|
|
phrase-level conversion, variant conversion and regional idioms among Mainland China,
|
|
|
|
Taiwan and Hong kong.
|
|
|
|
'';
|
2020-02-08 22:12:17 +00:00
|
|
|
maintainers = with maintainers; [ sifmelcara ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-11-08 18:29:43 +00:00
|
|
|
};
|
|
|
|
}
|