Merge pull request #221675 from wineee/qt5platform-plugins

deepin.qt5platform-plugins: 5.6.3 -> 5.6.5
This commit is contained in:
Weijia Wang 2023-03-17 22:07:53 +02:00 committed by GitHub
commit e78a9a3b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,28 +9,26 @@
, mtdev
, cairo
, xorg
, waylandSupport ? false
, waylandSupport ? true
, wayland
}:
stdenv.mkDerivation rec {
pname = "qt5platform-plugins";
version = "5.6.3";
version = "5.6.5";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-AySltMI9x5mfquy532h1QfGpfwSfI9+h6BtIHPyNWGk=";
sha256 = "sha256-DHgnfJTUw1hY53DmDfzVFM6Ff8q6pbNDPmPeSsV7MwY=";
};
## https://github.com/linuxdeepin/qt5platform-plugins/pull/119
postPatch = ''
rm -r xcb/libqt5xcbqpa-dev/
mkdir -p xcb/libqt5xcbqpa-dev/${qtbase.version}
cp -r ${qtbase.src}/src/plugins/platforms/xcb/*.h xcb/libqt5xcbqpa-dev/${qtbase.version}/
'';
nativeBuildInputs = [ qmake pkg-config wrapQtAppsHook ];
nativeBuildInputs = [
qmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
mtdev
@ -38,13 +36,20 @@ stdenv.mkDerivation rec {
qtbase
qtx11extras
xorg.libSM
]
++ lib.optionals waylandSupport [
wayland
];
qmakeFlags = [
"INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
"QT_XCB_PRIVATE_INCLUDE=${qtbase.src}/src/plugins/platforms/xcb"
]
++ lib.optionals (!waylandSupport) [ "CONFIG+=DISABLE_WAYLAND" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString waylandSupport "-I${wayland.dev}/include";
meta = with lib; {
description = "Qt platform plugins for DDE";
homepage = "https://github.com/linuxdeepin/qt5platform-plugins";