1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wayland
, dwayland
, qtbase
, qttools
, qtx11extras
, wrapQtAppsHook
, extra-cmake-modules
, gsettings-qt
, libepoxy
, kconfig
, kconfigwidgets
, kcoreaddons
, kcrash
, kdbusaddons
, kiconthemes
, kglobalaccel
, kidletime
, knotifications
, kpackage
, plasma-framework
, kcmutils
, knewstuff
, kdecoration
, kscreenlocker
, breeze-qt5
, libinput
, mesa
, lcms2
, xorg
}:
stdenv.mkDerivation rec {
pname = "deepin-kwin";
version = "5.25.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-aI5wHEFfvZeoz4ykw9dVx/9e96T1Yahs4YZNutv+CYM=";
};
patches = [
./0001-hardcode-fallback-background.diff
];
# Avoid using absolute path to distinguish applications
postPatch = ''
substituteInPlace src/effects/screenshot/screenshotdbusinterface1.cpp \
--replace 'file.readAll().startsWith(DEFINE_DDE_DOCK_PATH"dde-dock")' 'file.readAll().contains("dde-dock")'
'';
nativeBuildInputs = [
cmake
pkg-config
extra-cmake-modules
wrapQtAppsHook
];
buildInputs = [
qtbase
qttools
qtx11extras
wayland
dwayland
libepoxy
gsettings-qt
kconfig
kconfigwidgets
kcoreaddons
kcrash
kdbusaddons
kiconthemes
kglobalaccel
kidletime
knotifications
kpackage
plasma-framework
kcmutils
knewstuff
kdecoration
kscreenlocker
breeze-qt5
libinput
mesa
lcms2
xorg.libxcb
xorg.libXdmcp
xorg.libXcursor
xorg.xcbutilcursor
xorg.libXtst
xorg.libXScrnSaver
];
cmakeFlags = [
"-DKWIN_BUILD_RUNNERS=OFF"
];
outputs = [ "out" "dev" ];
meta = with lib; {
description = "Fork of kwin, an easy to use, but flexible, composited Window Manager";
homepage = "https://github.com/linuxdeepin/deepin-kwin";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}
|