2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2020-05-03 17:38:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
, libdbusmenu-lxqt
|
|
|
|
, libdbusmenu ? null
|
2020-05-03 17:38:23 +00:00
|
|
|
, libfm-qt
|
2020-06-02 18:00:15 +00:00
|
|
|
, libqtxdg
|
|
|
|
, lxqt-build-tools
|
2022-10-06 18:32:54 +00:00
|
|
|
, gitUpdater
|
2020-06-02 18:00:15 +00:00
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, version ? "2.0.0"
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lxqt-qtplugin";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxqt";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = {
|
|
|
|
"1.4.1" = "sha256-sp/LvQNfodMYQ4kNbBv4PTNfs38XjYLezuxRltZd4kc=";
|
|
|
|
"2.0.0" = "sha256-o5iD4VzsbN81lwDZJuFj8Ugg1RP752M4unu3J5/h8g8=";
|
|
|
|
}."${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
lxqt-build-tools
|
2023-11-16 04:20:00 +00:00
|
|
|
qttools
|
2024-04-21 15:54:59 +00:00
|
|
|
wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
(if lib.versionAtLeast version "2.0.0" then libdbusmenu-lxqt else libdbusmenu)
|
2020-04-24 23:36:52 +00:00
|
|
|
libfm-qt
|
2020-06-02 18:00:15 +00:00
|
|
|
libqtxdg
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/CMakeLists.txt \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
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; {
|
|
|
|
homepage = "https://github.com/lxqt/lxqt-qtplugin";
|
2021-02-13 14:23:35 +00:00
|
|
|
description = "LXQt Qt platform integration plugin";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|