mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 21:54:45 +00:00
Ever since 01fc72b356 we don't distribute
libsForQt5.fcitx5-configtool so the qt5 conditions are redundant.
81 lines
1.4 KiB
Nix
81 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
pkg-config,
|
|
fcitx5,
|
|
fcitx5-qt,
|
|
qtbase,
|
|
qtsvg,
|
|
qtwayland,
|
|
qtdeclarative,
|
|
kitemviews,
|
|
kwidgetsaddons,
|
|
kcmutils,
|
|
kcoreaddons,
|
|
kdeclarative,
|
|
kirigami ? null,
|
|
isocodes,
|
|
xkeyboard-config,
|
|
libxkbfile,
|
|
libplasma ? null,
|
|
wrapQtAppsHook,
|
|
kcmSupport ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcitx5-configtool";
|
|
version = "5.1.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcitx";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-+lpJlGaVGTcZpoGvcHAsb5N5M4Y3McV4GSZpSwZxX3Y=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "KDE_INSTALL_USE_QT_SYS_PATHS" true)
|
|
(lib.cmakeBool "ENABLE_KCM" kcmSupport)
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
fcitx5
|
|
fcitx5-qt
|
|
qtbase
|
|
qtsvg
|
|
qtwayland
|
|
kitemviews
|
|
kwidgetsaddons
|
|
isocodes
|
|
xkeyboard-config
|
|
libxkbfile
|
|
]
|
|
++ lib.optionals kcmSupport [
|
|
qtdeclarative
|
|
kcoreaddons
|
|
kdeclarative
|
|
kcmutils
|
|
libplasma
|
|
kirigami
|
|
];
|
|
|
|
meta = {
|
|
description = "Configuration Tool for Fcitx5";
|
|
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ poscat ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "fcitx5-config-qt";
|
|
};
|
|
}
|