@@ -0,0 +1,44 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools,
2+ deepin-gettext-tools, dtkcore, dtkwidget
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "${pname}-${version}";
7+ pname = "dde-calendar";
8+ version = "1.2.5";
9+
10+ src = fetchFromGitHub {
11+ owner = "linuxdeepin";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "1a5zxpz7zncw6mrzv8zmn0j1vk0c8fq0m1xhmnwllffzybrhn4y7";
15+ };
16+
17+ nativeBuildInputs = [
18+ pkgconfig
19+ qmake
20+ qttools
21+ deepin-gettext-tools
22+ ];
23+
24+ buildInputs = [
25+ dtkcore
26+ dtkwidget
27+ ];
28+
29+ postPatch = ''
30+ patchShebangs .
31+ sed -i translate_desktop.sh \
32+ -e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
33+ sed -i com.deepin.Calendar.service \
34+ -e "s,/usr,$out,"
35+ '';
36+
37+ meta = with stdenv.lib; {
38+ description = "Calendar for Deepin Desktop Environment";
39+ homepage = https://github.com/linuxdeepin/dde-calendar;
40+ license = licenses.gpl3;
41+ platforms = platforms.linux;
42+ maintainers = with maintainers; [ romildo ];
43+ };
44+}