From ce45e043e4ae4ff68c3e8864d5e7098e962fbf20 Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Mon, 24 Jan 2011 23:52:22 +0000 Subject: [PATCH] Adding redshift; it changes the color temperature of your screen gradually to match the lighting conditions svn path=/nixpkgs/trunk/; revision=25686 --- pkgs/applications/misc/redshift/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 +++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 pkgs/applications/misc/redshift/default.nix diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix new file mode 100644 index 00000000000..6d6234b8d3e --- /dev/null +++ b/pkgs/applications/misc/redshift/default.nix @@ -0,0 +1,28 @@ +{ fetchurl, stdenv, + libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python, + randrproto, xcbutil, xf86vidmodeproto }: + +stdenv.mkDerivation rec { + name = "redshift"; + version = "1.6"; + src = fetchurl { + url = "http://launchpad.net/${name}/trunk/${version}/+download/${name}-${version}.tar.bz2"; + sha256 = "0g46zhqnx3y2fssmyjgaardzhjw1j29l1dbc2kmccw9wxqfla1wi"; + }; + + 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"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eaf7752ceca..5f5cd0fc273 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7162,9 +7162,14 @@ let pkgs_for_46.newScope pkgs_for_46.kde46; }; + redshift = callPackage ../applications/misc/redshift { + inherit (xorg) libX11 libXrandr libxcb randrproto libXxf86vm + xf86vidmodeproto; + }; + oxygen_gtk = callPackage ../misc/themes/gtk2/oxygen-gtk { - inherit (gtkLibs) glib gtk; - }; + inherit (gtkLibs) glib gtk; + }; xfce = xfce4;