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

61 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv
2020-12-13 03:14:54 +00:00
, mkDerivation
, fetchFromGitHub
, cmake
, extra-cmake-modules
, fcitx5
, fcitx5-qt
, qtx11extras
, kwidgetsaddons
, kdeclarative
, kirigami2
, isocodes
, xkeyboardconfig
, libxkbfile
, libXdmcp
, kcmSupport ? true
}:
mkDerivation rec {
pname = "fcitx5-configtool";
version = "5.0.1";
src = fetchFromGitHub {
owner = "fcitx";
repo = "fcitx5-configtool";
rev = version;
sha256 = "npSqd0R6bqKc+JxYCGcfVzgNLpuLtnHq6zM58smZ8/I=";
};
cmakeFlags = [
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
];
nativeBuildInputs = [
cmake
extra-cmake-modules
];
buildInputs = [
fcitx5
fcitx5-qt
qtx11extras
kirigami2
isocodes
xkeyboardconfig
libxkbfile
libXdmcp
2021-01-15 09:19:50 +00:00
] ++ lib.optionals kcmSupport [
2020-12-13 03:14:54 +00:00
kdeclarative
kwidgetsaddons
];
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;
};
}