nixpkgs/pkgs/tools/text/opencc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
957 B
Nix
Raw Normal View History

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";
2023-10-17 12:30:33 +00:00
version = "1.1.7";
2020-02-08 22:12:17 +00:00
src = fetchFromGitHub {
owner = "BYVoid";
repo = "OpenCC";
rev = "ver.${version}";
2023-10-17 12:30:33 +00:00
sha256 = "sha256-N7nazA0xoQ2ewOGDiJg1vBBYMdF1/qiCfNjG5CFFbuk=";
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
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
};
}