56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libdbusmenu
|
|
, libfm-qt
|
|
, libqtxdg
|
|
, lxqt-build-tools
|
|
, lxqtUpdateScript
|
|
, qtbase
|
|
, qtsvg
|
|
, qttools
|
|
, qtx11extras
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "lxqt-qtplugin";
|
|
version = "0.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0if01bdhz8ph4k1mwvjjjw0fw6mxzprgz17ap23xbsdr009hxdf0";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
lxqt-build-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
libdbusmenu
|
|
libfm-qt
|
|
libqtxdg
|
|
qtbase
|
|
qtsvg
|
|
qttools
|
|
qtx11extras
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/CMakeLists.txt \
|
|
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix"
|
|
'';
|
|
|
|
passthru.updateScript = lxqtUpdateScript { inherit pname version src; };
|
|
|
|
meta = with lib; {
|
|
description = "LXQt Qt platform integration plugin";
|
|
homepage = "https://github.com/lxqt/lxqt-qtplugin";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ romildo ];
|
|
};
|
|
}
|