2011-08-23 00:51:23 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk, dbus_glib, xfconf
|
2011-08-23 01:08:42 +02:00
|
|
|
, libxfce4ui, libxfce4util, libnotify, xfce4panel }:
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-21 12:16:51 +01:00
|
|
|
p_name = "xfce4-power-manager";
|
2013-03-09 22:30:06 +01:00
|
|
|
ver_maj = "1.2";
|
|
|
|
ver_min = "0";
|
2013-02-21 12:16:51 +01:00
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
src = fetchurl {
|
2013-02-21 12:16:51 +01:00
|
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2013-03-09 22:30:06 +01:00
|
|
|
sha256 = "1sc4f4wci5yl3l9lk7vcsbwj6hdjshbxw9qm43s64jr882jriyyp";
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
2013-09-08 00:03:44 +02:00
|
|
|
|
|
|
|
brightness_patch = fetchurl {
|
|
|
|
url = "http://git.xfce.org/xfce/xfce4-power-manager/patch/?id=05d12e12596512f7a31d3cdb4845a69dc2d4c611";
|
|
|
|
sha256 = "0rbldvjwpj93hx59xrmvbdql1pgkbqzjh4vp6gkavn4z6sv535v8";
|
|
|
|
};
|
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
2011-08-23 00:51:23 +02:00
|
|
|
|
|
|
|
buildInputs =
|
2011-08-23 01:08:42 +02:00
|
|
|
[ pkgconfig intltool gtk dbus_glib xfconf libxfce4ui libxfce4util
|
2011-08-23 00:51:23 +02:00
|
|
|
libnotify xfce4panel
|
|
|
|
];
|
2013-02-21 12:16:51 +01:00
|
|
|
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
|
2011-08-23 00:51:23 +02:00
|
|
|
|
2013-09-08 00:03:44 +02:00
|
|
|
patches = [ brightness_patch ];
|
|
|
|
|
2011-08-23 00:51:23 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://goodies.xfce.org/projects/applications/xfce4-power-manager;
|
|
|
|
description = "A power manager for the Xfce Desktop Environment";
|
|
|
|
license = "GPLv2+";
|
2011-09-06 01:30:26 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-08-23 00:51:23 +02:00
|
|
|
};
|
|
|
|
}
|