nixpkgs/pkgs/tools/inputmethods/fcitx5/fcitx5-configtool.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
1.9 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
2020-12-13 03:14:54 +00:00
fetchFromGitHub,
cmake,
extra-cmake-modules,
pkg-config,
2020-12-13 03:14:54 +00:00
fcitx5,
fcitx5-qt,
qtbase,
qtsvg,
qtwayland,
qtdeclarative,
qtx11extras ? null,
kitemviews,
2020-12-13 03:14:54 +00:00
kwidgetsaddons,
qtquickcontrols2 ? null,
kcoreaddons,
2020-12-13 03:14:54 +00:00
kdeclarative,
kirigami ? null,
kirigami2 ? null,
2020-12-13 03:14:54 +00:00
isocodes,
xkeyboardconfig,
libxkbfile,
libplasma ? null,
plasma-framework ? null,
wrapQtAppsHook,
2020-12-13 03:14:54 +00:00
kcmSupport ? true,
}:
stdenv.mkDerivation rec {
2020-12-13 03:14:54 +00:00
pname = "fcitx5-configtool";
version = "5.1.7";
2020-12-13 03:14:54 +00:00
src = fetchFromGitHub {
owner = "fcitx";
2021-06-02 12:42:16 +00:00
repo = pname;
2020-12-13 03:14:54 +00:00
rev = version;
hash = "sha256-6Slh1uZglRNBLQ1ziKf2xaP+NK6Abug/6TZcYy2HFPQ=";
2020-12-13 03:14:54 +00:00
};
cmakeFlags = [
(lib.cmakeBool "KDE_INSTALL_USE_QT_SYS_PATHS" true)
(lib.cmakeBool "ENABLE_KCM" kcmSupport)
(lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6"))
2020-12-13 03:14:54 +00:00
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
2020-12-13 03:14:54 +00:00
];
buildInputs =
[
fcitx5
fcitx5-qt
qtbase
qtsvg
qtwayland
kitemviews
kwidgetsaddons
2020-12-13 03:14:54 +00:00
isocodes
xkeyboardconfig
libxkbfile
]
++ lib.optionals (lib.versions.major qtbase.version == "5") [
qtx11extras
]
++ lib.optionals kcmSupport (
[
qtdeclarative
kcoreaddons
2020-12-13 03:14:54 +00:00
kdeclarative
]
++ lib.optionals (lib.versions.major qtbase.version == "5") [
qtquickcontrols2
plasma-framework
kirigami2
]
++ lib.optionals (lib.versions.major qtbase.version == "6") [
libplasma
kirigami
]
);
2020-12-13 03:14:54 +00:00
2021-01-15 09:19:50 +00:00
meta = with lib; {
2020-12-13 03:14:54 +00:00
description = "Configuration Tool for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-configtool";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
mainProgram = "fcitx5-config-qt";
2020-12-13 03:14:54 +00:00
};
}