summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2013-11-12 02:52:10 +0100
committerRicardo M. Correia <rcorreia@wizy.org>2013-11-19 15:38:56 +0100
commitbc05abe5c30489136eb9e34386f05d15ef8becc0 (patch)
tree5c520139e606df24df3449c2b99351658a4ca672
parent934c46183997a157fac661a2f873c231a71e953f (diff)
downloadnixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar.gz
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar.bz2
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar.lz
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar.xz
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.tar.zst
nixlib-bc05abe5c30489136eb9e34386f05d15ef8becc0.zip
xfce4-datetime-plugin: Add package
Shows the date and time in the panel, and a calendar appears when you left-click on it.
-rw-r--r--pkgs/desktops/xfce/common.nix1
-rw-r--r--pkgs/desktops/xfce/default.nix1
-rw-r--r--pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix23
3 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce/common.nix b/pkgs/desktops/xfce/common.nix
index c9d8c1505653..9f048b18c06d 100644
--- a/pkgs/desktops/xfce/common.nix
+++ b/pkgs/desktops/xfce/common.nix
@@ -69,6 +69,7 @@
     xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { };
     xfce4_cpufreq_plugin    = callPackage ./panel-plugins/xfce4-cpufreq-plugin.nix    { };
     xfce4_xkb_plugin        = callPackage ./panel-plugins/xfce4-xkb-plugin.nix        { };
+    xfce4_datetime_plugin   = callPackage ./panel-plugins/xfce4-datetime-plugin.nix   { };
 
   };
 }
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix
index aebbff9b7be2..ede7ffb6c49c 100644
--- a/pkgs/desktops/xfce/default.nix
+++ b/pkgs/desktops/xfce/default.nix
@@ -57,6 +57,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
   xfce4_systemload_plugin = callPackage ./panel-plugins/xfce4-systemload-plugin.nix { };
   xfce4_cpufreq_plugin    = callPackage ./panel-plugins/xfce4-cpufreq-plugin.nix    { };
   xfce4_xkb_plugin        = callPackage ./panel-plugins/xfce4-xkb-plugin.nix        { };
+  xfce4_datetime_plugin   = callPackage ./panel-plugins/xfce4-datetime-plugin.nix   { };
 
 }; # xfce_self
 
diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix
new file mode 100644
index 000000000000..267a8b77ff14
--- /dev/null
+++ b/pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, libxfcegui4, xfce4panel
+, gtk }:
+
+stdenv.mkDerivation rec {
+  p_name  = "xfce4-datetime-plugin";
+  ver_maj = "0.6";
+  ver_min = "1";
+
+  name = "${p_name}-${ver_maj}.${ver_min}";
+
+  src = fetchurl {
+    url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2";
+    sha256 = "06xvh22y5y0bcy7zb9ylvjpcl09wdyb751r7gwyg7m3h44f0qd7v";
+  };
+
+  buildInputs = [ pkgconfig intltool libxfce4util libxfcegui4 xfce4panel gtk ];
+
+  meta = {
+    homepage = "http://goodies.xfce.org/projects/panel-plugins/${p_name}";
+    description = "Shows the date and time in the panel, and a calendar appears when you left-click on it";
+    platforms = stdenv.lib.platforms.linux;
+  };
+}