2019-07-22 03:53:18 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qtx11extras, libSM,
|
2019-07-22 04:23:25 +01:00
|
|
|
mtdev, cairo, deepin, qtbase }:
|
2018-09-03 20:37:54 +01:00
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2018-09-03 20:37:54 +01:00
|
|
|
pname = "qt5dxcb-plugin";
|
2019-10-22 00:56:20 +01:00
|
|
|
version = "5.0.1";
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1pkhbx4hzjv7n4mscv7dng9ymjcc1csdc82iy62yxshhq32bcfja";
|
|
|
|
})
|
|
|
|
qtbase.src
|
|
|
|
];
|
2018-09-03 20:37:54 +01:00
|
|
|
|
2019-10-22 00:56:20 +01:00
|
|
|
sourceRoot = "source";
|
2018-09-03 20:37:54 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtx11extras
|
|
|
|
libSM
|
|
|
|
mtdev
|
|
|
|
cairo
|
2019-10-22 00:56:20 +01:00
|
|
|
qtbase
|
2018-09-03 20:37:54 +01:00
|
|
|
];
|
|
|
|
|
2019-10-22 00:56:20 +01:00
|
|
|
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}
|
2019-10-22 13:44:12 +01:00
|
|
|
cp -r ../qtbase-everywhere-src-${qtbase.version}/src/plugins/platforms/xcb/*.h platformplugin/libqt5xcbqpa-dev/${qtbase.version}/
|
2019-10-22 00:56:20 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-22 04:23:25 +01:00
|
|
|
qmakeFlags = [
|
2019-09-03 17:38:57 +01:00
|
|
|
"INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
|
2019-07-22 04:23:25 +01:00
|
|
|
];
|
2018-09-03 20:37:54 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-04 09:20:00 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 22:17:45 +00:00
|
|
|
|
2018-09-03 20:37:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt platform theme integration plugin for DDE";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/qt5dxcb-plugin";
|
2018-09-03 20:37:54 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|