2024-05-25 08:10:01 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
sqlite,
|
|
|
|
}:
|
2015-11-25 05:50:40 +00:00
|
|
|
|
2024-05-25 08:05:51 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libchewing";
|
2024-05-25 08:02:58 +00:00
|
|
|
version = "0.6.0";
|
2015-11-25 05:50:40 +00:00
|
|
|
|
2021-04-24 00:09:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chewing";
|
|
|
|
repo = "libchewing";
|
2024-05-25 08:02:58 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
sha256 = "sha256-X+4Rr5Mfc4qeJxmHczu4MKgHBvQN1rhqUrJSx8SFnDk=";
|
2015-11-25 05:50:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
2021-04-24 00:09:48 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-11-25 05:50:40 +00:00
|
|
|
description = "Intelligent Chinese phonetic input method";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://chewing.im/";
|
2021-04-24 00:09:48 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2024-05-25 08:27:21 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
ericsagnes
|
|
|
|
ShamrockLee
|
|
|
|
];
|
2024-06-06 16:52:48 +00:00
|
|
|
platforms = platforms.all;
|
2015-11-25 05:50:40 +00:00
|
|
|
};
|
2024-05-25 08:05:51 +00:00
|
|
|
})
|