diff options
author | AndersonTorres <torres.anderson.85@gmail.com> | 2014-10-05 09:49:03 -0300 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-10-05 17:18:37 +0100 |
commit | 5c6170a848e51221abcf15e13b4192c07be61082 (patch) | |
tree | 60f0464a7b91e2f2a4cde911a7fbb51baca75f11 /pkgs | |
parent | 02c8dbe382e821d830e719422e21b3f8b50370de (diff) | |
download | nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar.gz nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar.bz2 nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar.lz nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar.xz nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.tar.zst nixpkgs-5c6170a848e51221abcf15e13b4192c07be61082.zip |
XFCE battery plugin: new package
Closes #4386
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/desktops/xfce/default.nix | 1 | ||||
-rw-r--r-- | pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index 2d449b3fe30..ae6b1a88a14 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -60,6 +60,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od 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 { }; + xfce4_battery_plugin = callPackage ./panel-plugins/xfce4-battery-plugin.nix { }; }; # xfce_self diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix new file mode 100644 index 00000000000..dd93c851c7b --- /dev/null +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4panel, libxfce4ui, libxfcegui4, xfconf, gtk}: + +stdenv.mkDerivation rec { + p_name = "xfce4-battery-plugin"; + ver_maj = "1.0"; + ver_min = "0"; + + src = fetchurl { + url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2"; + sha256 = "07qji9gh7ail06kwf1lniph5fdccvrsjwsxwnlbw0cmrws0bb2y2"; + }; + name = "${p_name}-${ver_maj}.${ver_min}"; + + buildInputs = [ pkgconfig intltool libxfce4util libxfce4ui xfce4panel libxfcegui4 xfconf gtk ]; + preFixup = "rm $out/share/icons/hicolor/icon-theme.cache"; + + meta = { + homepage = "http://goodies.xfce.org/projects/panel-plugins/${p_name}"; + description = "Battery plugin for Xfce panel"; + platforms = stdenv.lib.platforms.linux; + }; +} |