deepin.qt5xcb-plugin: 1.2.2 -> 5.0.1, fix build

This commit is contained in:
worldofpeace 2019-10-21 19:56:20 -04:00
parent b09fbccbaf
commit c2eed8b9b0

View File

@ -3,14 +3,19 @@
mkDerivation rec { mkDerivation rec {
pname = "qt5dxcb-plugin"; pname = "qt5dxcb-plugin";
version = "1.2.2"; version = "5.0.1";
src = fetchFromGitHub { srcs = [
owner = "linuxdeepin"; (fetchFromGitHub {
repo = pname; owner = "linuxdeepin";
rev = version; repo = pname;
sha256 = "1zvab6qxdr49pmk6mbk7s0md7bx585p32lca0xbg8mrkajz7g8rq"; rev = version;
}; sha256 = "1pkhbx4hzjv7n4mscv7dng9ymjcc1csdc82iy62yxshhq32bcfja";
})
qtbase.src
];
sourceRoot = "source";
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig pkgconfig
@ -22,8 +27,16 @@ mkDerivation rec {
libSM libSM
mtdev mtdev
cairo cairo
qtbase
]; ];
postPatch = ''
# The Qt5 platforms plugin is vendored in the package, however what's there is not always up-to-date with what's in nixpkgs.
# We simply copy the headers from qtbase's source tarball.
mkdir -p platformplugin/libqt5xcbqpa-dev/${qtbase.version}
cp -r ../qtbase-everywhere-src-5.12.4/src/plugins/platforms/xcb/*.h platformplugin/libqt5xcbqpa-dev/${qtbase.version}/
'';
qmakeFlags = [ qmakeFlags = [
"INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms" "INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
]; ];