From bc05abe5c30489136eb9e34386f05d15ef8becc0 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Tue, 12 Nov 2013 02:52:10 +0100 Subject: xfce4-datetime-plugin: Add package Shows the date and time in the panel, and a calendar appears when you left-click on it. --- pkgs/desktops/xfce/common.nix | 1 + pkgs/desktops/xfce/default.nix | 1 + .../xfce/panel-plugins/xfce4-datetime-plugin.nix | 23 ++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix 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; + }; +} -- cgit 1.4.1