1 { lib, stdenv, fetchurl, fetchFromGitHub
10 url = "mirror://sourceforge/libpinyin/models/model17.text.tar.gz";
11 sha256 = "1kb2nswpsqlk2qm5jr7vqcp97f2dx7nvpk24lxjs1g12n252f5z0";
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 sha256 = "14fkpp16s5k0pbw5wwd24pqr0qbdjgbl90n9aqwx72m03n7an40l";
26 tar -xzf ${modelData} -C $sourceRoot/data
29 nativeBuildInputs = [ autoreconfHook glib db pkg-config ];
32 description = "Library for intelligent sentence-based Chinese pinyin input method";
33 homepage = "https://sourceforge.net/projects/libpinyin";
34 license = licenses.gpl2;
35 maintainers = with maintainers; [ ericsagnes ];
36 platforms = platforms.linux;