nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix
AndersonTorres 591f129c6d lxqt: cosmetical changes
Updated the GPL and LGPL licenses.
2021-02-08 11:41:52 -03:00

57 lines
1.0 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.16.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "14k5icxjkl5znp59y44791brsmwy54jkwr4vn3kg4ggqjdp3vbh9";
};
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 ];
};
}