tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
deepin.dde-calendar: 5.8.30 -> 5.10.1
rewine
2 years ago
a58db6d3
356c6dcd
+35
-37
2 changed files
expand all
collapse all
unified
split
pkgs
desktops
deepin
core
dde-calendar
default.nix
fix-wrapped-name-not-in-whitelist.diff
+22
-37
pkgs/desktops/deepin/core/dde-calendar/default.nix
···
1
1
{ stdenv
2
2
, lib
3
3
, fetchFromGitHub
4
4
-
, fetchpatch
4
4
+
, cmake
5
5
+
, qttools
6
6
+
, pkg-config
7
7
+
, wrapQtAppsHook
5
8
, dtkwidget
6
9
, qt5integration
7
10
, qt5platform-plugins
8
11
, dde-qt-dbus-factory
9
9
-
, cmake
10
10
-
, qttools
11
11
-
, pkg-config
12
12
-
, wrapQtAppsHook
12
12
+
, qtbase
13
13
+
, qtsvg
14
14
+
, libical
15
15
+
, sqlite
13
16
, runtimeShell
14
14
-
, qtbase
15
15
-
, gtest
16
17
}:
17
18
18
19
stdenv.mkDerivation rec {
19
20
pname = "dde-calendar";
20
20
-
version = "5.8.30";
21
21
+
version = "5.10.1";
21
22
22
23
src = fetchFromGitHub {
23
24
owner = "linuxdeepin";
24
25
repo = pname;
25
26
rev = version;
26
26
-
sha256 = "sha256-8/UXq9W3Gb1Lg/nOji6zcHJts6lgY2uDxvrBxQs3Zio=";
27
27
+
hash = "sha256-oPrtPOCLZof4BysWfsCYeoqbJf30r7LijGEEXZlsAAY=";
27
28
};
28
29
29
30
patches = [
30
30
-
(fetchpatch {
31
31
-
name = "chore-use-GNUInstallDirs-in-CmakeLists.patch";
32
32
-
url = "https://github.com/linuxdeepin/dde-calendar/commit/b9d9555d90a36318eeee62ece49250b4bf8acd10.patch";
33
33
-
sha256 = "sha256-pvgxZPczs/lkwNjysNuVu+1AY69VZlxOn7hR9A02/3M=";
34
34
-
})
31
31
+
./fix-wrapped-name-not-in-whitelist.diff
35
32
];
36
33
37
34
postPatch = ''
38
38
-
substituteInPlace calendar-service/src/dbmanager/huanglidatabase.cpp \
39
39
-
--replace "/usr/share/dde-calendar/data/huangli.db" "$out/share/dde-calendar/data/huangli.db"
40
40
-
substituteInPlace calendar-service/src/main.cpp \
41
41
-
--replace "/usr/share/dde-calendar/translations" "$out/share/dde-calendar/translations"
42
42
-
substituteInPlace calendar-service/assets/data/com.deepin.dataserver.Calendar.service \
43
43
-
--replace "/usr/lib/deepin-daemon/dde-calendar-service" "$out/lib/deepin-daemon/dde-calendar-service"
44
44
-
substituteInPlace calendar-client/assets/dbus/com.deepin.Calendar.service \
45
45
-
--replace "/usr/bin/dde-calendar" "$out/bin/dde-calendar"
46
46
-
substituteInPlace calendar-service/{src/{csystemdtimercontrol.cpp,jobremindmanager.cpp},assets/{data/com.dde.calendarserver.calendar.service,dde-calendar-service.desktop}} \
47
47
-
--replace "/bin/bash" "${runtimeShell}"
48
48
-
49
49
-
substituteInPlace CMakeLists.txt \
50
50
-
--replace "ADD_SUBDIRECTORY(tests)" " "
35
35
+
for file in $(grep -rl "/bin/bash"); do
36
36
+
substituteInPlace $file --replace "/bin/bash" "${runtimeShell}"
37
37
+
done
51
38
'';
52
39
53
40
nativeBuildInputs = [
···
58
45
];
59
46
60
47
buildInputs = [
48
48
+
qt5integration
49
49
+
qt5platform-plugins
61
50
dtkwidget
62
62
-
qt5platform-plugins
51
51
+
qtbase
52
52
+
qtsvg
63
53
dde-qt-dbus-factory
64
64
-
gtest
54
54
+
libical
55
55
+
sqlite
65
56
];
66
57
67
58
cmakeFlags = [ "-DVERSION=${version}" ];
68
59
69
69
-
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
70
70
-
qtWrapperArgs = [
71
71
-
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
72
72
-
];
73
73
-
74
74
-
postFixup = ''
75
75
-
wrapQtApp $out/lib/deepin-daemon/dde-calendar-service
76
76
-
'';
60
60
+
strictDeps = true;
77
61
78
62
meta = with lib; {
79
63
description = "Calendar for Deepin Desktop Environment";
···
83
67
maintainers = teams.deepin.members;
84
68
};
85
69
}
70
70
+
+13
pkgs/desktops/deepin/core/dde-calendar/fix-wrapped-name-not-in-whitelist.diff
···
1
1
+
diff --git a/calendar-service/src/dbusservice/dservicebase.cpp b/calendar-service/src/dbusservice/dservicebase.cpp
2
2
+
index ac182881..93a9c2d8 100644
3
3
+
--- a/calendar-service/src/dbusservice/dservicebase.cpp
4
4
+
+++ b/calendar-service/src/dbusservice/dservicebase.cpp
5
5
+
@@ -52,6 +52,8 @@ bool DServiceBase::clientWhite(const int index)
6
6
+
return true;
7
7
+
}
8
8
+
}
9
9
+
+ if (getClientName().contains("dde-calendar"))
10
10
+
+ return true;
11
11
+
return false;
12
12
+
#else
13
13
+
Q_UNUSED(index)