Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 intltool, 7 pkg-config, 8 python3, 9 wrapGAppsHook3, 10 glib, 11 gtk3, 12 ibus, 13 lua, 14 pyzy, 15 sqlite, 16 nix-update-script, 17}: 18 19stdenv.mkDerivation rec { 20 pname = "ibus-pinyin"; 21 version = "1.5.1"; 22 23 src = fetchFromGitHub { 24 owner = "ibus"; 25 repo = "ibus-pinyin"; 26 rev = version; 27 hash = "sha256-8nM/dEjkNhQNv6Ikv4xtRkS3mALDT6OYC1EAKn1zNtI="; 28 }; 29 30 nativeBuildInputs = [ 31 autoreconfHook 32 intltool 33 pkg-config 34 python3 35 wrapGAppsHook3 36 ]; 37 38 buildInputs = [ 39 glib 40 gtk3 41 ibus 42 lua 43 pyzy 44 sqlite 45 ]; 46 47 passthru.updateScript = nix-update-script { }; 48 49 meta = { 50 isIbusEngine = true; 51 description = "PinYin engine for IBus"; 52 license = lib.licenses.gpl2Only; 53 maintainers = with lib.maintainers; [ azuwis ]; 54 platforms = lib.platforms.linux; 55 }; 56}