lxqt.lxqt-qtplugin: 1.4.0 -> 2.0.0

This commit is contained in:
José Romildo 2024-04-18 14:21:41 -03:00
parent 16153d2e76
commit c1b470acde

View file

@ -1,8 +1,9 @@
{ lib { lib
, mkDerivation , stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, libdbusmenu , libdbusmenu-lxqt
, libdbusmenu ? null
, libfm-qt , libfm-qt
, libqtxdg , libqtxdg
, lxqt-build-tools , lxqt-build-tools
@ -10,38 +11,42 @@
, qtbase , qtbase
, qtsvg , qtsvg
, qttools , qttools
, qtx11extras , wrapQtAppsHook
, version ? "2.0.0"
}: }:
mkDerivation rec { stdenv.mkDerivation rec {
pname = "lxqt-qtplugin"; pname = "lxqt-qtplugin";
version = "1.4.0"; inherit version;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lxqt"; owner = "lxqt";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-0shNkM1AGAjzMQDGLOIP2DFx6goJGoD0U0Gr+rRRFrk="; hash = {
"1.4.1" = "sha256-sp/LvQNfodMYQ4kNbBv4PTNfs38XjYLezuxRltZd4kc=";
"2.0.0" = "sha256-o5iD4VzsbN81lwDZJuFj8Ugg1RP752M4unu3J5/h8g8=";
}."${version}";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
lxqt-build-tools lxqt-build-tools
qttools qttools
wrapQtAppsHook
]; ];
buildInputs = [ buildInputs = [
libdbusmenu (if lib.versionAtLeast version "2.0.0" then libdbusmenu-lxqt else libdbusmenu)
libfm-qt libfm-qt
libqtxdg libqtxdg
qtbase qtbase
qtsvg qtsvg
qtx11extras
]; ];
postPatch = '' postPatch = ''
substituteInPlace src/CMakeLists.txt \ substituteInPlace src/CMakeLists.txt \
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix" --replace-fail "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix"
''; '';
passthru.updateScript = gitUpdater { }; passthru.updateScript = gitUpdater { };