about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/dde-calendar
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2018-09-10 03:48:02 -0300
committerxeji <36407913+xeji@users.noreply.github.com>2018-09-10 08:48:02 +0200
commite5b904818b656a596a541ee9f6ac694c8bda2476 (patch)
tree6ff4494d3d7fa707f3502e5cc67d05c760a8168d /pkgs/desktops/deepin/dde-calendar
parentba5176551e2facd5c9e4d43c0b1393f5608a058a (diff)
dde-calendar: init at 1.2.5 (#46460)
Diffstat (limited to 'pkgs/desktops/deepin/dde-calendar')
-rw-r--r--pkgs/desktops/deepin/dde-calendar/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/dde-calendar/default.nix b/pkgs/desktops/deepin/dde-calendar/default.nix
new file mode 100644
index 0000000000000..ad6b0f1912a62
--- /dev/null
+++ b/pkgs/desktops/deepin/dde-calendar/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools,
+  deepin-gettext-tools, dtkcore, dtkwidget
+}:
+
+stdenv.mkDerivation rec {
+  name = "${pname}-${version}";
+  pname = "dde-calendar";
+  version = "1.2.5";
+
+  src = fetchFromGitHub {
+    owner = "linuxdeepin";
+    repo = pname;
+    rev = version;
+    sha256 = "1a5zxpz7zncw6mrzv8zmn0j1vk0c8fq0m1xhmnwllffzybrhn4y7";
+  };
+
+  nativeBuildInputs = [
+    pkgconfig
+    qmake
+    qttools
+    deepin-gettext-tools
+  ];
+
+  buildInputs = [
+    dtkcore
+    dtkwidget
+  ];
+
+  postPatch = ''
+    patchShebangs .
+    sed -i translate_desktop.sh \
+      -e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
+    sed -i com.deepin.Calendar.service \
+      -e "s,/usr,$out,"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Calendar for Deepin Desktop Environment";
+    homepage = https://github.com/linuxdeepin/dde-calendar;
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ romildo ];
+  };
+}