git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19145 from rycee/fix/redshift-icons

redshift: fix broken icons

commitce7336bbc30d06f2f3705137a75ce90f091db04b authorTobias Geerinckx-Rice <nckx@users.noreply.github.com> dateSat 1 Oct 2016, 23:35 (10 years ago) parent5435f9414340ac
1 file changed+4−4
pkgs/applications/misc/redshift/default.nix+4−4
pkgs/applications/misc/redshift/default.nix+4−4
@@ -1,6 +1,6 @@
11{ fetchurl, stdenv, gettext, intltool, makeWrapper, pkgconfig
22, geoclue2
3−, guiSupport ? true, hicolor_icon_theme, gtk3, python, pygobject3, pyxdg
3+, guiSupport ? true, hicolor_icon_theme, librsvg, gtk3, python, pygobject3, pyxdg
44, drmSupport ? true, libdrm
55, randrSupport ? true, libxcb
66, vidModeSupport ? true, libX11, libXxf86vm
@@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
2121 };
2222
2323 buildInputs = [ geoclue2 ]
24− ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme gtk3 python
25− pygobject3 pyxdg ]
24+ ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme librsvg gtk3
25+ python pygobject3 pyxdg ]
2626 ++ stdenv.lib.optionals drmSupport [ libdrm ]
2727 ++ stdenv.lib.optionals randrSupport [ libxcb ]
2828 ++ stdenv.lib.optionals vidModeSupport [ libX11 libXxf86vm ];
@@ -41,9 +41,9 @@ stdenv.mkDerivation rec {
4141 substituteInPlace src/redshift-gtk/redshift-gtk \
4242 --replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
4343 '';
44−
4544 postInstall = stdenv.lib.optionalString guiSupport ''
4645 wrapProgram "$out/bin/redshift-gtk" \
46+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
4747 --prefix PYTHONPATH : "$PYTHONPATH" \
4848 --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
4949 --prefix XDG_DATA_DIRS : "$out/share:${hicolor_icon_theme}/share"