nixpkgs/pkgs/applications/misc/redshift/default.nix
aszlig a3bd1be27b
redshift: Update to new upstream version 1.7.
Upstream release notes:

 - Add Geoclue location provider by Mathieu Trudel-Lapierre.
 - Allow brightness to be adjusted (-b).
 - Provide option to set color temperature directly (Joe Hillenbrand).
 - Add option to show program version (-V).
 - Add configure.ac option to install ubuntu icons. They will no longer
   be installed by default (Francesco Marella).
 - config: Look in %userprofile%/.config/redshift.conf on windows platform.
 - Fix: w32gdi: Obtain a new DC handle on every adjustment. This fixes a
   bug where redshift stops updating the screen.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2013-08-14 20:50:57 +02:00

30 lines
1 KiB
Nix

{ fetchurl, stdenv,
libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python,
randrproto, xcbutil, xf86vidmodeproto }:
stdenv.mkDerivation rec {
pname = "redshift";
version = "1.7";
name = "${pname}-${version}";
src = fetchurl {
url = "http://launchpad.net/${pname}/trunk/${version}/+download/${pname}-${version}.tar.bz2";
sha256 = "1j0hs0vnlic90cf4bryn11n4ani1x2s5l8z6ll3fmrlw98ykrylv";
};
buildInputs = [ libX11 libXrandr libXxf86vm libxcb pkgconfig python
randrproto xcbutil xf86vidmodeproto ];
meta = {
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 = "GPLv3+";
homepage = "http://jonls.dk/redshift";
};
}