deepin.qt5platform-plugins: 5.6.3 -> 5.6.5

This commit is contained in:
rewine 2023-03-17 23:32:16 +08:00
parent be0f4240cc
commit 01285fcc49
No known key found for this signature in database
GPG Key ID: AABB329787290824

View File

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