Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 wrapGAppsHook4, 8 glib, 9 gtk4, 10 ibus, 11 libadwaita, 12 libchewing, 13}: 14 15stdenv.mkDerivation (finalAttrs: { 16 pname = "ibus-chewing"; 17 version = "2.1.4"; 18 19 src = fetchFromGitHub { 20 owner = "chewing"; 21 repo = "ibus-chewing"; 22 tag = "v${finalAttrs.version}"; 23 hash = "sha256-l2sXjXpiParDslVDG1mXmtGNj6qcLJMPxeaBYNQkqZA="; 24 }; 25 26 nativeBuildInputs = [ 27 cmake 28 pkg-config 29 wrapGAppsHook4 30 ]; 31 32 buildInputs = [ 33 glib 34 gtk4 35 ibus 36 libadwaita 37 libchewing 38 ]; 39 40 enableParallelBuilding = true; 41 42 meta = { 43 isIbusEngine = true; 44 description = "Chewing engine for IBus"; 45 homepage = "https://github.com/chewing/ibus-chewing"; 46 changelog = "https://github.com/chewing/ibus-chewing/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 47 license = lib.licenses.gpl2Plus; 48 maintainers = with lib.maintainers; [ ShamrockLee ]; 49 platforms = lib.platforms.linux; 50 }; 51})