1{ lib, stdenv, fetchFromGitHub, sqlite, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "libchewing"; 5 version = "unstable-2020-06-27"; 6 7 src = fetchFromGitHub { 8 owner = "chewing"; 9 repo = "libchewing"; 10 rev = "452f6221fbad90c0706a3963b17e226216e40dd7"; 11 sha256 = "sha256-w3/K2O/CU+XVzqzVCYJyq1vLgToN6iIUhJ9J7ia4p9E="; 12 }; 13 14 buildInputs = [ sqlite ]; 15 16 nativeBuildInputs = [ cmake ]; 17 18 meta = with lib; { 19 description = "Intelligent Chinese phonetic input method"; 20 homepage = "https://chewing.im/"; 21 license = licenses.lgpl21Only; 22 maintainers = [ maintainers.ericsagnes ]; 23 platforms = platforms.linux; 24 }; 25}