forked from mirrors/nixpkgs
opencc: init at 1.0.4
This commit is contained in:
parent
4831e116e2
commit
edc5cdc3c8
29
pkgs/tools/text/opencc/default.nix
Normal file
29
pkgs/tools/text/opencc/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, fetchurl, cmake, python }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "opencc-1.0.4";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/BYVoid/OpenCC/archive/ver.1.0.4.tar.gz";
|
||||
sha256 = "0553b7461ebd379d118d45d7f40f8a6e272750115bdbc49267595a05ee3481ac";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake python ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=OFF"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/BYVoid/OpenCC";
|
||||
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.
|
||||
'';
|
||||
maintainers = [ maintainers.mingchuan ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -2992,6 +2992,8 @@ in
|
|||
|
||||
oh-my-zsh = callPackage ../shells/oh-my-zsh { };
|
||||
|
||||
opencc = callPackage ../tools/text/opencc { };
|
||||
|
||||
opencryptoki = callPackage ../tools/security/opencryptoki { };
|
||||
|
||||
opendbx = callPackage ../development/libraries/opendbx { };
|
||||
|
|
Loading…
Reference in a new issue