12 modelData = fetchurl {
13 url = "mirror://sourceforge/libpinyin/models/model19.text.tar.gz";
14 sha256 = "02zml6m8sj5q97ibpvaj9s9yz3gfj0jnjrfhkn02qv4nwm72lhjn";
17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-hafetjKWqImg3Jr1tSXjY0RwbBQ7LccXqx0OdtKCy/c=";
29 tar -xzf ${modelData} -C $sourceRoot/data
40 description = "Library for intelligent sentence-based Chinese pinyin input method";
41 homepage = "https://github.com/libpinyin/libpinyin";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ linsui ericsagnes ];
44 platforms = platforms.linux;