nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix
2021-04-16 17:36:32 -03:00

57 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.17.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "168ii015j57hkccdh27h2fdh8yzs8nzy8nw20wnx6fbcg5401666";
};
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; {
homepage = "https://github.com/lxqt/lxqt-qtplugin";
description = "LXQt Qt platform integration plugin";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}