2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-10-01 09:20:50 +00:00
|
|
|
, glib
|
2020-05-03 17:38:23 +00:00
|
|
|
, lxqt-build-tools
|
|
|
|
, qtbase
|
|
|
|
, qtx11extras
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
, kwindowsystem
|
|
|
|
, libkscreen
|
|
|
|
, liblxqt
|
|
|
|
, libqtxdg
|
2022-01-07 04:07:37 +00:00
|
|
|
, xkeyboard_config
|
2020-05-03 17:38:23 +00:00
|
|
|
, xorg
|
|
|
|
, lxqtUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "lxqt-config";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxqt";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "ncoJLpKzE1tqOV+KuUiGLDWiDvzJg0le4m4BMKFw6Mg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
lxqt-build-tools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-10-01 09:20:50 +00:00
|
|
|
glib.bin
|
2020-04-24 23:36:52 +00:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
libkscreen
|
|
|
|
liblxqt
|
|
|
|
libqtxdg
|
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.xf86inputlibinput
|
|
|
|
xorg.xf86inputlibinput.dev
|
|
|
|
];
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace lxqt-config-appearance/configothertoolkits.cpp \
|
|
|
|
--replace 'QStringLiteral("gsettings' \
|
|
|
|
'QStringLiteral("${glib.bin}/bin/gsettings'
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
substituteInPlace lxqt-config-input/keyboardlayoutconfig.h \
|
|
|
|
--replace '/usr/share/X11/xkb/rules/base.lst' \
|
|
|
|
'${xkeyboard_config}/share/X11/xkb/rules/base.lst'
|
2021-10-01 09:20:50 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/lxqt/lxqt-config";
|
2021-02-13 14:23:35 +00:00
|
|
|
description = "Tools to configure LXQt and the underlying operating system";
|
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = teams.lxqt.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|