summary refs log tree commit diff
path: root/pkgs/applications/misc/redshift/default.nix
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2016-10-01 23:00:18 +0200
committerRobert Helgesson <robert@rycee.net>2016-10-01 23:08:10 +0200
commit14340ac21f67e3c7c40ddc002165e098e7e7d42f (patch)
tree2d7f1101adaed4771ff360cd42854c2000bcd262 /pkgs/applications/misc/redshift/default.nix
parent5bf5de58ea568b733d7399233f4d661f911c742d (diff)
downloadnixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar.gz
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar.bz2
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar.lz
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar.xz
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.tar.zst
nixpkgs-14340ac21f67e3c7c40ddc002165e098e7e7d42f.zip
redshift: fix broken icons
Redshift uses SVG icons and librsvg therefore needs to be available and
the `GDK_PIXBUF_MODULE_FILE` variable set in the wrapper.
Diffstat (limited to 'pkgs/applications/misc/redshift/default.nix')
-rw-r--r--pkgs/applications/misc/redshift/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix
index e62deb9a348..3fe0503d7f9 100644
--- a/pkgs/applications/misc/redshift/default.nix
+++ b/pkgs/applications/misc/redshift/default.nix
@@ -1,6 +1,6 @@
 { fetchurl, stdenv, gettext, intltool, makeWrapper, pkgconfig
 , geoclue2
-, guiSupport ? true, hicolor_icon_theme, gtk3, python, pygobject3, pyxdg
+, guiSupport ? true, hicolor_icon_theme, librsvg, gtk3, python, pygobject3, pyxdg
 , drmSupport ? true, libdrm
 , randrSupport ? true, libxcb
 , vidModeSupport ? true, libX11, libXxf86vm
@@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
   };
 
   buildInputs = [ geoclue2 ]
-    ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme gtk3 python
-      pygobject3 pyxdg ]
+    ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme librsvg gtk3
+      python pygobject3 pyxdg ]
     ++ stdenv.lib.optionals drmSupport [ libdrm ]
     ++ stdenv.lib.optionals randrSupport [ libxcb ]
     ++ stdenv.lib.optionals vidModeSupport [ libX11 libXxf86vm ];
@@ -41,9 +41,9 @@ stdenv.mkDerivation rec {
     substituteInPlace src/redshift-gtk/redshift-gtk \
       --replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
   '';
-
   postInstall = stdenv.lib.optionalString guiSupport ''
     wrapProgram "$out/bin/redshift-gtk" \
+      --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
       --prefix PYTHONPATH : "$PYTHONPATH" \
       --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
       --prefix XDG_DATA_DIRS : "$out/share:${hicolor_icon_theme}/share"