On 11/24/2015 09:28 AM, Florian Paul Schmidt wrote:
> How could anyone live without this? I am disappoint.. I couldn't try it
> on bare metal yet and the drm and randr methods fail in qemu. Maybe
> someone can test it? Thanks?

Version 2 of the patch. lint is happy. Some recomended changes
included.. Tested locally.

I wanted to try the --rounds=3 option, but since it was already built I
was at a loss about how to make it run a few rounds..

Flo

-- 
https://fps.io
>From f35546e7679e39f5f9cd790c1a9cb27e7b7825b1 Mon Sep 17 00:00:00 2001
From: Florian Paul Schmidt <mista.ta...@gmx.net>
Date: Thu, 10 Dec 2015 08:57:57 +0100
Subject: [PATCH] gnu: Add redshift

* gnu/packages/xdisorg.scm (redshift): New variable.
---
 gnu/packages/xdisorg.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4b5308c..798e6ff 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -655,3 +655,40 @@ use it as well.")
      "The xf86-input-wacom driver is the wacom-specific X11 input driver for
 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
     (license license:x11)))
+
+(define-public redshift
+  (package
+    (name "redshift")
+    (version "1.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/jonls/redshift/";
+                       "releases/download/v" version
+                       "/redshift-" version ".tar.xz"))
+       (sha256
+        (base32
+         "19pfk9il5x2g2ivqix4a555psz8mj3m0cvjwnjpjvx0llh5fghjv"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (inputs
+     `(("libdrm" ,libdrm)
+       ("libx11" ,libx11)
+       ("libxcb" ,libxcb)
+       ("libxxf86vm", libxxf86vm)
+       ("geoclue" ,geoclue)))
+    (home-page "https://github.com/jonls/redshift";)
+    (synopsis
+     "Adjusts your screen's color temperature
+according to your surroundings")
+    (description
+     "Redshift adjusts the color temperature 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.  At night the color temperature should be set to match the lamps in your
+room.")
+    (license license:gpl3+)))
-- 
2.6.3

Reply via email to