nixpkgs-suyu/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 16:13:47 +02:00
{ lib, stdenv, fetchFromGitHub, cmake, python3 }:
2016-11-08 19:29:43 +01:00
2020-02-08 23:12:17 +01:00
stdenv.mkDerivation rec {
pname = "opencc";
2022-08-01 07:23:56 +02:00
version = "1.1.4";
2020-02-08 23:12:17 +01:00
src = fetchFromGitHub {
owner = "BYVoid";
repo = "OpenCC";
rev = "ver.${version}";
2022-08-01 07:23:56 +02:00
sha256 = "sha256-h/QKXPWHNgWf5Q9UIaNmP85YTUMN7RlRdlNI4NuBrO8=";
2016-11-08 19:29:43 +01:00
};
2022-04-26 16:13:47 +02:00
nativeBuildInputs = [ cmake python3 ];
2016-11-08 19:29:43 +01:00
meta = with lib; {
2020-02-08 23:12:17 +01:00
homepage = "https://github.com/BYVoid/OpenCC";
2016-11-08 19:29:43 +01: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 23:12:17 +01:00
maintainers = with maintainers; [ sifmelcara ];
platforms = with platforms; linux ++ darwin;
2016-11-08 19:29:43 +01:00
};
}