@@ -0,0 +1,51 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
2+ qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
3+ dde-qt-dbus-factory, dtkcore
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "${pname}-${version}";
8+ pname = "dtkwidget";
9+ version = "2.0.9.3";
10+
11+ src = fetchFromGitHub {
12+ owner = "linuxdeepin";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "1ngspvjvws1d2nkyqjh9y45ilahkd1fqwxnlmazgik4355mb76bv";
16+ };
17+
18+ nativeBuildInputs = [
19+ pkgconfig
20+ qmake
21+ qttools
22+ ];
23+
24+ buildInputs = [
25+ qtmultimedia
26+ qtsvg
27+ qtx11extras
28+ librsvg
29+ libstartup_notification
30+ gsettings-qt
31+ dde-qt-dbus-factory
32+ dtkcore
33+ ];
34+
35+ preConfigure = ''
36+ qmakeFlags="$qmakeFlags \
37+ INCLUDE_INSTALL_DIR=$out/include \
38+ LIB_INSTALL_DIR=$out/lib \
39+ QT_HOST_DATA=$out"
40+ '';
41+
42+ enableParallelBuilding = true;
43+
44+ meta = with stdenv.lib; {
45+ description = "Deepin graphical user interface library";
46+ homepage = https://github.com/linuxdeepin/dtkwidget;
47+ license = licenses.gpl3;
48+ platforms = platforms.linux;
49+ maintainers = with maintainers; [ romildo ];
50+ };
51+}