tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dde-session-ui: 5.6.2 -> 6.0.10
rewine
2 years ago
7613b21f
9e079d77
+14
-38
1 changed file
expand all
collapse all
unified
split
pkgs
desktops
deepin
core
dde-session-ui
default.nix
+14
-38
pkgs/desktops/deepin/core/dde-session-ui/default.nix
···
1
{ stdenv
2
, lib
3
, fetchFromGitHub
0
0
0
0
0
4
, dtkwidget
5
, qt5integration
6
, qt5platform-plugins
7
-
, pkg-config
8
-
, cmake
9
, dde-dock
10
-
, dde-qt-dbus-factory
11
-
, deepin-gettext-tools
12
, gsettings-qt
13
-
, lightdm_qt
14
-
, qttools
15
, qtx11extras
16
-
, util-linux
17
-
, xorg
18
-
, pcre
19
-
, libselinux
20
-
, libsepol
21
-
, wrapQtAppsHook
22
, gtest
23
-
, xkeyboard_config
24
-
, qtbase
25
-
, dbus
26
}:
27
28
stdenv.mkDerivation rec {
29
pname = "dde-session-ui";
30
-
version = "5.6.2";
31
32
src = fetchFromGitHub {
33
owner = "linuxdeepin";
34
repo = pname;
35
rev = version;
36
-
sha256 = "sha256-3lW/M07b6gXzGcvQYB+Ojqdq7TfJBaMIKfmfG7o3wWg=";
37
};
38
39
postPatch = ''
···
41
--replace "/usr/share/backgrounds" "/run/current-system/sw/share/backgrounds" \
42
--replace "/usr/share/wallpapers" "/run/current-system/sw/share/wallpapers"
43
44
-
substituteInPlace global_util/xkbparser.h \
45
-
--replace "/usr/share/X11/xkb/rules/base.xml" "${xkeyboard_config}/share/X11/xkb/rules/base.xml"
46
-
47
-
substituteInPlace dde-warning-dialog/com.deepin.dde.WarningDialog.service dde-osd/files/dde-osd.desktop dde-welcome/com.deepin.dde.welcome.service \
48
--replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon"
49
50
-
substituteInPlace dde-osd/notification/bubbletool.cpp \
51
-
--replace "/usr/share" "/run/current-system/sw/share"
52
-
53
-
substituteInPlace dde-osd/files/{com.deepin.dde.Notification.service,com.deepin.dde.freedesktop.Notification.service,com.deepin.dde.osd.service} \
54
-
--replace "/usr/bin/dbus-send" "${dbus}/bin/dbus-send" \
55
-
--replace "/usr/share" "$out/share"
56
-
57
-
substituteInPlace dde-lowpower/main.cpp dmemory-warning-dialog/main.cpp dde-touchscreen-dialog/main.cpp dnetwork-secret-dialog/main.cpp dde-suspend-dialog/main.cpp \
58
-
dde-warning-dialog/main.cpp dde-bluetooth-dialog/main.cpp dde-welcome/main.cpp dde-hints-dialog/main.cpp dde-osd/main.cpp dde-wm-chooser/main.cpp \
59
-
dde-license-dialog/{content.cpp,main.cpp} dmemory-warning-dialog/com.deepin.dde.MemoryWarningDialog.service \
60
--replace "/usr" "$out"
61
'';
62
···
64
cmake
65
pkg-config
66
qttools
67
-
deepin-gettext-tools
68
wrapQtAppsHook
69
];
70
71
buildInputs = [
0
72
dtkwidget
73
qt5platform-plugins
74
dde-dock
75
-
dde-qt-dbus-factory
76
gsettings-qt
77
qtx11extras
78
-
pcre
79
-
xorg.libXdmcp
80
-
util-linux
81
-
libselinux
82
-
libsepol
83
gtest
0
0
0
0
84
];
85
86
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
···
1
{ stdenv
2
, lib
3
, fetchFromGitHub
4
+
, cmake
5
+
, pkg-config
6
+
, qttools
7
+
, wrapQtAppsHook
8
+
, qtbase
9
, dtkwidget
10
, qt5integration
11
, qt5platform-plugins
0
0
12
, dde-dock
0
0
13
, gsettings-qt
0
0
14
, qtx11extras
0
0
0
0
0
0
15
, gtest
0
0
0
16
}:
17
18
stdenv.mkDerivation rec {
19
pname = "dde-session-ui";
20
+
version = "6.0.10";
21
22
src = fetchFromGitHub {
23
owner = "linuxdeepin";
24
repo = pname;
25
rev = version;
26
+
hash = "sha256-JwktVbwWdfqURhZuEFdB5oaKMsBZu5DekpZ2WGpcL4Q=";
27
};
28
29
postPatch = ''
···
31
--replace "/usr/share/backgrounds" "/run/current-system/sw/share/backgrounds" \
32
--replace "/usr/share/wallpapers" "/run/current-system/sw/share/wallpapers"
33
34
+
substituteInPlace dde-warning-dialog/src/org.deepin.dde.WarningDialog1.service dde-welcome/src/org.deepin.dde.Welcome1.service \
0
0
0
35
--replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon"
36
37
+
substituteInPlace dmemory-warning-dialog/src/org.deepin.dde.MemoryWarningDialog1.service \
0
0
0
0
0
0
0
0
0
38
--replace "/usr" "$out"
39
'';
40
···
42
cmake
43
pkg-config
44
qttools
0
45
wrapQtAppsHook
46
];
47
48
buildInputs = [
49
+
qtbase
50
dtkwidget
51
qt5platform-plugins
52
dde-dock
0
53
gsettings-qt
54
qtx11extras
0
0
0
0
0
55
gtest
56
+
];
57
+
58
+
cmakeFlags = [
59
+
"-DDISABLE_SYS_UPDATE=ON"
60
];
61
62
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH