@@ -0,0 +1,39 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, dtkcore }:
2+
3+stdenv.mkDerivation rec {
4+ name = "${pname}-${version}";
5+ pname = "dtkwm";
6+ version = "2.0.9";
7+
8+ src = fetchFromGitHub {
9+ owner = "linuxdeepin";
10+ repo = pname;
11+ rev = version;
12+ sha256 = "0vkx6vlz83pgawhdwqkwpq3dy8whxmjdzfpgrvm2m6jmspfk9bab";
13+ };
14+
15+ nativeBuildInputs = [
16+ pkgconfig
17+ qmake
18+ ];
19+
20+ buildInputs = [
21+ dtkcore
22+ qtx11extras
23+ ];
24+
25+ preConfigure = ''
26+ qmakeFlags="$qmakeFlags \
27+ QT_HOST_DATA=$out \
28+ INCLUDE_INSTALL_DIR=$out/include \
29+ LIB_INSTALL_DIR=$out/lib"
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ description = "Deepin graphical user interface library";
34+ homepage = https://github.com/linuxdeepin/dtkwm;
35+ license = licenses.gpl3Plus;
36+ platforms = platforms.linux;
37+ maintainers = with maintainers; [ romildo ];
38+ };
39+}