2020-05-03 12:52:19 -07:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, qmake
|
|
|
|
, qtx11extras
|
|
|
|
, libSM
|
|
|
|
, mtdev
|
|
|
|
, cairo
|
|
|
|
, deepin
|
|
|
|
, qtbase
|
|
|
|
}:
|
2018-09-03 12:37:54 -07:00
|
|
|
|
2019-07-21 19:53:18 -07:00
|
|
|
mkDerivation rec {
|
2020-05-26 12:28:49 -07:00
|
|
|
pname = "qt5platform-plugins";
|
2020-05-26 12:17:20 -07:00
|
|
|
version = "5.0.11";
|
2019-10-21 16:56:20 -07:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-26 12:17:20 -07:00
|
|
|
sha256 = "14xkr3p49716jc9v7ksj6jgcmfa65qicqrmablizfi71srg3z2pr";
|
2019-10-21 16:56:20 -07:00
|
|
|
})
|
|
|
|
qtbase.src
|
|
|
|
];
|
2018-09-03 12:37:54 -07:00
|
|
|
|
2019-10-21 16:56:20 -07:00
|
|
|
sourceRoot = "source";
|
2018-09-03 12:37:54 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtx11extras
|
|
|
|
libSM
|
|
|
|
mtdev
|
|
|
|
cairo
|
2019-10-21 16:56:20 -07:00
|
|
|
qtbase
|
2018-09-03 12:37:54 -07:00
|
|
|
];
|
|
|
|
|
2019-10-21 16:56:20 -07: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 05:44:12 -07:00
|
|
|
cp -r ../qtbase-everywhere-src-${qtbase.version}/src/plugins/platforms/xcb/*.h platformplugin/libqt5xcbqpa-dev/${qtbase.version}/
|
2019-10-21 16:56:20 -07:00
|
|
|
'';
|
|
|
|
|
2019-07-21 20:23:25 -07:00
|
|
|
qmakeFlags = [
|
2019-09-03 09:38:57 -07:00
|
|
|
"INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
|
2019-07-21 20:23:25 -07:00
|
|
|
];
|
2018-09-03 12:37:54 -07:00
|
|
|
|
2020-05-03 13:03:55 -07:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version; src = (builtins.head srcs); };
|
2018-10-30 15:17:45 -07:00
|
|
|
|
2018-09-03 12:37:54 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt platform theme integration plugin for DDE";
|
2020-05-26 12:28:49 -07:00
|
|
|
homepage = "https://github.com/linuxdeepin/qt5platform-plugins";
|
2018-09-03 12:37:54 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|