mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
d274222c3b
Fixes fcitx/fcitx5-configtool#38 that prevented compiling.
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, fcitx5
|
|
, fcitx5-qt
|
|
, qtx11extras
|
|
, qtquickcontrols2
|
|
, kwidgetsaddons
|
|
, kdeclarative
|
|
, kirigami2
|
|
, isocodes
|
|
, xkeyboardconfig
|
|
, libxkbfile
|
|
, libXdmcp
|
|
, kcmSupport ? true
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "fcitx5-configtool";
|
|
version = "5.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcitx";
|
|
repo = "fcitx5-configtool";
|
|
rev = version;
|
|
sha256 = "sha256-UO3Ob+bFQ/2Vqb8YpD9tfmfZt5YLUyoqcbtsHLaVOzE=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
];
|
|
|
|
buildInputs = [
|
|
fcitx5
|
|
fcitx5-qt
|
|
qtx11extras
|
|
qtquickcontrols2
|
|
kirigami2
|
|
isocodes
|
|
xkeyboardconfig
|
|
libxkbfile
|
|
libXdmcp
|
|
] ++ lib.optionals kcmSupport [
|
|
kdeclarative
|
|
kwidgetsaddons
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Configuration Tool for Fcitx5";
|
|
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ poscat ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|