mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
a61bd1e42d
libqtxdg fails to build on darwin. LXQt is a DE for linux so assume darwin is not supported. The platform for some packages that may be useful outside of LXQt (like pcmanfm-qt, lximage-qt and others) and do not depend on libqtxdg are not being changed.
46 lines
949 B
Nix
46 lines
949 B
Nix
{
|
|
lib, mkDerivation, fetchFromGitHub,
|
|
cmake, lxqt-build-tools,
|
|
qtbase, qtx11extras, qttools, qtsvg, libdbusmenu, libqtxdg, libfm-qt
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "lxqt-qtplugin";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxqt";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "16n50lxnya03zcviw65sy5dyg9dsrn64k91mrqfvraf6d90md4al";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
lxqt-build-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtx11extras
|
|
qttools
|
|
qtsvg
|
|
libdbusmenu
|
|
libqtxdg
|
|
libfm-qt
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/CMakeLists.txt \
|
|
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|