2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, lxqt-build-tools
|
|
|
|
, qtx11extras
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
, libqtxdg
|
|
|
|
, polkit-qt
|
|
|
|
, kwindowsystem
|
|
|
|
, xorg
|
2022-10-06 18:32:54 +00:00
|
|
|
, gitUpdater
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "liblxqt";
|
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 = "vfqEB9Vh/BL47dlEvnyWwDBO0pRIUS1IuixW8A0PRds=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
lxqt-build-tools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
polkit-qt
|
|
|
|
kwindowsystem
|
|
|
|
libqtxdg
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# convert name of wrapped binary, e.g. .lxqt-whatever-wrapped to the original name, e.g. lxqt-whatever so binaries can find their resources
|
|
|
|
patches = [ ./fix-application-path.patch ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2021-04-19 03:05:28 +00:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/119766
|
|
|
|
substituteInPlace lxqtbacklight/linux_backend/driver/libbacklight_backend.c \
|
|
|
|
--replace "pkexec lxqt-backlight_backend" "pkexec $out/bin/lxqt-backlight_backend"
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Core utility library for all LXQt components";
|
|
|
|
homepage = "https://github.com/lxqt/liblxqt";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = teams.lxqt.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|