summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/misc/batti
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2014-10-03 14:54:08 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2014-10-05 09:11:35 -0300
commite7f5263456dc8e14112ffc86033d0849fc3f0d0f (patch)
tree52a3a29f0fb51a48c8e9adf70bd75d8124d79686 /pkgs/applications/misc/batti
parentd6b777875361aa2f18a3f75f56fe109e38832211 (diff)
Batti: adjusting icon paths
Diffstat (limited to 'pkgs/applications/misc/batti')
-rw-r--r--pkgs/applications/misc/batti/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/applications/misc/batti/default.nix b/pkgs/applications/misc/batti/default.nix
index 0cd8009dbe69..9bf481189e38 100644
--- a/pkgs/applications/misc/batti/default.nix
+++ b/pkgs/applications/misc/batti/default.nix
@@ -1,7 +1,8 @@
{ stdenv, fetchurl
-, pkgconfig, makeWrapper, gettext, python
+, pkgconfig, gettext, python
, gtk, pygtk, dbus_python
-, upower }:
+, gdk_pixbuf, upower
+, makeWrapper }:
stdenv.mkDerivation rec {
@@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
};
buildInputs = with stdenv.lib;
- [ pkgconfig makeWrapper gettext python gtk pygtk dbus_python upower ];
+ [ pkgconfig gettext python gtk pygtk dbus_python gdk_pixbuf upower makeWrapper ];
configurePhase = "true";
@@ -24,7 +25,10 @@ stdenv.mkDerivation rec {
installPhase = ''
python setup.py install --prefix $out
- wrapProgram $out/bin/batti --set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out)"
+ wrapProgram "$out/bin/batti" \
+ --set PYTHONPATH "$PYTHONPATH:$(toPythonPath $out)" \
+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
+ --prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
'';