mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #319049 from azuwis/ibus-pinyin
ibus-engines.pinyin: init at 1.5.1
This commit is contained in:
commit
4c2e57d036
55
pkgs/by-name/py/pyzy/package.nix
Normal file
55
pkgs/by-name/py/pyzy/package.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
python3,
|
||||
glib,
|
||||
libuuid,
|
||||
sqlite,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pyzy";
|
||||
version = "1.1-unstable-2023-02-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openSUSE";
|
||||
repo = "pyzy";
|
||||
rev = "ec719d053bd491ec64fe68fe0d1699ca6039ad80";
|
||||
hash = "sha256-wU7EgP/CPNhBx9N7mOu0WdnoLazzpQtbRxmBKrTUbKM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
libuuid
|
||||
sqlite
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./data/db/android/create_db.py
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version"
|
||||
"branch"
|
||||
];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Chinese PinYin and Bopomofo conversion library";
|
||||
homepage = "https://github.com/openSUSE/pyzy";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ azuwis ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
56
pkgs/tools/inputmethods/ibus-engines/ibus-pinyin/default.nix
Normal file
56
pkgs/tools/inputmethods/ibus-engines/ibus-pinyin/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
intltool,
|
||||
pkg-config,
|
||||
python3,
|
||||
wrapGAppsHook3,
|
||||
glib,
|
||||
gtk3,
|
||||
ibus,
|
||||
lua,
|
||||
pyzy,
|
||||
sqlite,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ibus-pinyin";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ibus";
|
||||
repo = "ibus-pinyin";
|
||||
rev = version;
|
||||
hash = "sha256-8nM/dEjkNhQNv6Ikv4xtRkS3mALDT6OYC1EAKn1zNtI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
intltool
|
||||
pkg-config
|
||||
python3
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
ibus
|
||||
lua
|
||||
pyzy
|
||||
sqlite
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
isIbusEngine = true;
|
||||
description = "The PinYin engine for IBus";
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ azuwis ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -6801,6 +6801,8 @@ with pkgs;
|
||||
|
||||
openbangla-keyboard = libsForQt5.callPackage ../applications/misc/openbangla-keyboard { withIbusSupport = true; };
|
||||
|
||||
pinyin = callPackage ../tools/inputmethods/ibus-engines/ibus-pinyin { };
|
||||
|
||||
rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };
|
||||
|
||||
table = callPackage ../tools/inputmethods/ibus-engines/ibus-table { };
|
||||
|
Loading…
Reference in New Issue
Block a user