anchor.diff:  , extra-cmake-modules
   , fcitx5
   , gobject-introspection
  +, glib
   , gtk2
   , gtk3
   , gtk4
  +, fmt
   , pcre
   , libuuid
   , libselinux
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "fcitx5-gtk";
    version = "5.0.3";
  
    src = fetchFromGitHub {
      owner = "fcitx";
      repo = "fcitx5-gtk";
      rev = version;
      sha256 = "sha256-+BzXbZyzC3fvLqysufblk0zK9fAg5jslVdm/v3jz4B4=";
    };
  
    cmakeFlags = [
  
negative.code:     libXtst
    ] ++ lib.optional withGTK2 gtk2;
  
    NIX_CFLAGS_COMPILE = lib.concatMapStringsSep " " (s: "-isystem ${s}") [
      "${glib.dev}/include/gio-unix-2.0"
      "${glib.dev}/include/glib-2.0"
    ];
  
    nativeBuildInputs = [
      cmake
      extra-cmake-modules
  