tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dde-dock: 5.5.81 -> 6.0.22
rewine
2 years ago
fdc46fb8
f21a5f64
+22
-22
1 changed file
expand all
collapse all
unified
split
pkgs
desktops
deepin
core
dde-dock
default.nix
+22
-22
pkgs/desktops/deepin/core/dde-dock/default.nix
···
1
{ stdenv
2
, lib
0
3
, fetchFromGitHub
4
-
, dtkwidget
5
-
, dde-qt-dbus-factory
6
-
, qt5integration
7
-
, qt5platform-plugins
8
-
, dde-control-center
9
-
, deepin-desktop-schemas
10
, cmake
0
11
, qttools
12
-
, qtx11extras
13
, pkg-config
14
, wrapQtAppsHook
15
, wrapGAppsHook
0
0
0
0
0
0
16
, gsettings-qt
17
, libdbusmenu
18
, xorg
19
-
, gtest
20
-
, qtbase
21
}:
22
23
stdenv.mkDerivation rec {
24
pname = "dde-dock";
25
-
version = "5.5.81";
26
27
src = fetchFromGitHub {
28
owner = "linuxdeepin";
29
repo = pname;
30
rev = version;
31
-
sha256 = "sha256-x8U5QPfIykaQLjwbErZiYbZC+JyPQQ+jd6MBjDQyUjs=";
32
};
33
34
postPatch = ''
35
-
substituteInPlace plugins/tray/system-trays/systemtrayscontroller.cpp frame/controller/dockpluginscontroller.cpp \
36
-
--replace "/usr/lib/dde-dock/plugins" "/run/current-system/sw/lib/dde-dock/plugins"
37
38
-
substituteInPlace plugins/show-desktop/showdesktopplugin.cpp frame/window/components/desktop_widget.cpp \
39
-
--replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon"
40
41
-
substituteInPlace plugins/{dcc-dock-plugin/settings_module.cpp,tray/system-trays/systemtrayscontroller.cpp} \
42
-
--replace "/usr" "$out"
43
-
'';
0
44
45
nativeBuildInputs = [
46
cmake
0
47
qttools
48
pkg-config
49
wrapQtAppsHook
···
52
dontWrapGApps = true;
53
54
buildInputs = [
0
55
dtkwidget
56
qt5platform-plugins
57
-
dde-qt-dbus-factory
58
-
dde-control-center
59
-
deepin-desktop-schemas
60
qtx11extras
61
gsettings-qt
62
libdbusmenu
63
xorg.libXcursor
64
xorg.libXtst
65
xorg.libXdmcp
66
-
gtest
67
];
68
69
outputs = [ "out" "dev" ];
···
1
{ stdenv
2
, lib
3
+
, fetchpatch
4
, fetchFromGitHub
0
0
0
0
0
0
5
, cmake
6
+
, extra-cmake-modules
7
, qttools
0
8
, pkg-config
9
, wrapQtAppsHook
10
, wrapGAppsHook
11
+
, qtbase
12
+
, dtkwidget
13
+
, qt5integration
14
+
, qt5platform-plugins
15
+
, dwayland
16
+
, qtx11extras
17
, gsettings-qt
18
, libdbusmenu
19
, xorg
0
0
20
}:
21
22
stdenv.mkDerivation rec {
23
pname = "dde-dock";
24
+
version = "6.0.22";
25
26
src = fetchFromGitHub {
27
owner = "linuxdeepin";
28
repo = pname;
29
rev = version;
30
+
hash = "sha256-fhc2faiPH35ZKw6SCoGTz+6mgxabNpCFQeY2p68Ba5w=";
31
};
32
33
postPatch = ''
34
+
substituteInPlace plugins/pluginmanager/pluginmanager.cpp frame/controller/quicksettingcontroller.cpp \
35
+
--replace "/usr/lib/dde-dock" "/run/current-system/sw/lib/dde-dock"
36
37
+
substituteInPlace configs/com.deepin.dde.dock.json frame/util/common.h \
38
+
--replace "/usr" "/run/current-system/sw"
39
40
+
for file in $(grep -rl "/usr/lib/deepin-daemon"); do
41
+
substituteInPlace $file --replace "/usr/lib/deepin-daemon" "/run/current-system/sw/lib/deepin-daemon"
42
+
done
43
+
'';
44
45
nativeBuildInputs = [
46
cmake
47
+
extra-cmake-modules
48
qttools
49
pkg-config
50
wrapQtAppsHook
···
53
dontWrapGApps = true;
54
55
buildInputs = [
56
+
qtbase
57
dtkwidget
58
qt5platform-plugins
59
+
dwayland
0
0
60
qtx11extras
61
gsettings-qt
62
libdbusmenu
63
xorg.libXcursor
64
xorg.libXtst
65
xorg.libXdmcp
66
+
xorg.libXres
67
];
68
69
outputs = [ "out" "dev" ];