about summary refs log tree commit diff
path: root/pkgs/desktops/xfce
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-03-05 21:06:25 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-03-05 21:06:25 +0100
commit21c51c570e6db667dd45cd3972176bbc8f868633 (patch)
treefab547ba43d94c1eabf38e0bbb47a40dd597ab12 /pkgs/desktops/xfce
parente9265d3c3394e8d7aacfa76365189d9c8e2a46d9 (diff)
downloadnixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar.gz
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar.bz2
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar.lz
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar.xz
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.tar.zst
nixlib-21c51c570e6db667dd45cd3972176bbc8f868633.zip
xfce-timer-plugin: init at 1.6.0 (#22563)
Diffstat (limited to 'pkgs/desktops/xfce')
-rw-r--r--pkgs/desktops/xfce/default.nix1
-rw-r--r--pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix29
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix
index ace5f289ab4d..96e05a2fb636 100644
--- a/pkgs/desktops/xfce/default.nix
+++ b/pkgs/desktops/xfce/default.nix
@@ -91,6 +91,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
   xfce4_notes_plugin            = callPackage ./panel-plugins/xfce4-notes-plugin.nix            { };
   xfce4-sensors-plugin          = callPackage ./panel-plugins/xfce4-sensors-plugin.nix          { };
   xfce4_systemload_plugin       = callPackage ./panel-plugins/xfce4-systemload-plugin.nix       { };
+  xfce4_timer_plugin            = callPackage ./panel-plugins/xfce4-timer-plugin.nix            { };
   xfce4_verve_plugin            = callPackage ./panel-plugins/xfce4-verve-plugin.nix            { };
   xfce4_xkb_plugin              = callPackage ./panel-plugins/xfce4-xkb-plugin.nix              { };
   xfce4_weather_plugin          = callPackage ./panel-plugins/xfce4-weather-plugin.nix          { };
diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix
new file mode 100644
index 000000000000..17dcb10c9d1e
--- /dev/null
+++ b/pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4panel, libxfce4ui, libxfcegui4, xfconf, gtk}:
+
+with stdenv.lib;
+stdenv.mkDerivation rec {
+  p_name  = "xfce4-timer-plugin";
+  ver_maj = "1.6";
+  ver_min = "0";
+
+  src = fetchurl {
+    url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2";
+    sha256 = "0z46gyw3ihcd1jf0m5z1dsc790xv1cpi8mk1dagj3i4v14gx5mrr";
+  };
+  name = "${p_name}-${ver_maj}.${ver_min}";
+
+  buildInputs = [ intltool libxfce4util libxfce4ui xfce4panel libxfcegui4 xfconf
+    gtk ];
+
+  nativeBuildInputs = [ pkgconfig ];
+
+  hardeningDisable = [ "format" ];
+
+  meta = {
+    homepage = "http://goodies.xfce.org/projects/panel-plugins/${p_name}";
+    description = "Battery plugin for Xfce panel";
+    platforms = platforms.linux;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.matthiasbeyer ];
+  };
+}