at 17.09-beta 29 lines 957 B view raw
1{ stdenv, fetchurl, cmake, python }: 2 3stdenv.mkDerivation { 4 name = "opencc-1.0.5"; 5 src = fetchurl { 6 url = "https://github.com/BYVoid/OpenCC/archive/ver.1.0.5.tar.gz"; 7 sha256 = "1ce1649ba280cfc88bb76e740be5f54b29a9c034400c97a3ae211c37d7030705"; 8 }; 9 10 buildInputs = [ cmake python ]; 11 12 cmakeFlags = [ 13 "-DBUILD_SHARED_LIBS=OFF" 14 ]; 15 16 meta = with stdenv.lib; { 17 homepage = https://github.com/BYVoid/OpenCC; 18 license = licenses.asl20; 19 description = "A project for conversion between Traditional and Simplified Chinese"; 20 longDescription = '' 21 Open Chinese Convert (OpenCC) is an opensource project for conversion between 22 Traditional Chinese and Simplified Chinese, supporting character-level conversion, 23 phrase-level conversion, variant conversion and regional idioms among Mainland China, 24 Taiwan and Hong kong. 25 ''; 26 maintainers = [ maintainers.mingchuan ]; 27 platforms = platforms.linux; 28 }; 29}