Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 gettext, 7 pkg-config, 8 wrapGAppsHook3, 9 sqlite, 10 libpinyin, 11 db, 12 ibus, 13 glib, 14 gtk3, 15 python3, 16 lua, 17 opencc, 18 libsoup_3, 19 json-glib, 20 libnotify, 21}: 22 23stdenv.mkDerivation rec { 24 pname = "ibus-libpinyin"; 25 version = "1.16.4"; 26 27 src = fetchFromGitHub { 28 owner = "libpinyin"; 29 repo = "ibus-libpinyin"; 30 tag = version; 31 hash = "sha256-ZIZ485Jk6LkFZ8TKEqlUeTZIIOZqo61uLQtPAfAX/Io="; 32 }; 33 34 nativeBuildInputs = [ 35 autoreconfHook 36 gettext 37 pkg-config 38 wrapGAppsHook3 39 ]; 40 41 configureFlags = [ 42 "--enable-cloud-input-mode" 43 "--enable-opencc" 44 ]; 45 46 buildInputs = [ 47 ibus 48 glib 49 sqlite 50 libpinyin 51 (python3.withPackages ( 52 pypkgs: with pypkgs; [ 53 pygobject3 54 (toPythonModule ibus) 55 ] 56 )) 57 gtk3 58 db 59 lua 60 opencc 61 libsoup_3 62 json-glib 63 libnotify 64 ]; 65 66 meta = { 67 isIbusEngine = true; 68 description = "IBus interface to the libpinyin input method"; 69 license = lib.licenses.gpl3Plus; 70 maintainers = with lib.maintainers; [ 71 linsui 72 ]; 73 platforms = lib.platforms.linux; 74 }; 75}