{ fetchFromGitHub, stdenv, libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python , randrproto, xcbutil, xf86vidmodeproto, autoconf, automake, gettext, glib , GConf, dbus, dbus_glib, makeWrapper, gtk, pygtk, pyxdg, geoclue }: stdenv.mkDerivation rec { version = "1.10-git-20150222"; name = "redshift-${version}"; src = fetchFromGitHub { owner = "jonls"; repo = "redshift"; rev = "8b0a67a2538d7c79b74086caab07735fa97aa047"; sha256 = "0559ljri81iyig9j5i259nzb0z2ml37hhw5ppclcv6l25bzrkgip"; }; buildInputs = [ libX11 libXrandr libXxf86vm libxcb pkgconfig python randrproto xcbutil xf86vidmodeproto autoconf automake gettext glib GConf dbus dbus_glib makeWrapper gtk pygtk pyxdg geoclue ]; preConfigure = '' ./bootstrap ''; preInstall = '' substituteInPlace src/redshift-gtk/redshift-gtk python \ --replace "/usr/bin/env python" "${python}/bin/${python.executable}" ''; postInstall = '' wrapProgram "$out/bin/redshift-gtk" \ --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0:${pyxdg}/lib/${python.libPrefix}/site-packages/pyxdg:$out/lib/${python.libPrefix}/site-packages ''; meta = with stdenv.lib; { description = "changes the color temperature of your screen gradually"; longDescription = '' The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt. ''; license = licenses.gpl3Plus; homepage = http://jonls.dk/redshift; platforms = platforms.linux; maintainers = [ maintainers.mornfall ]; }; }