13 modelData = fetchurl {
14 url = "mirror://sourceforge/libpinyin/models/model19.text.tar.gz";
15 sha256 = "02zml6m8sj5q97ibpvaj9s9yz3gfj0jnjrfhkn02qv4nwm72lhjn";
18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 hash = "sha256-3+CBbjCaY0Ubyphf0uCfYvF2rtc9fF1eEAM1doonjHg=";
30 tar -xzf ${modelData} -C $sourceRoot/data
46 description = "Library for intelligent sentence-based Chinese pinyin input method";
47 homepage = "https://github.com/libpinyin/libpinyin";
48 license = licenses.gpl3Plus;
49 maintainers = with maintainers; [
53 platforms = platforms.linux;