[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add redshift.
From: |
Ludovic Courtès |
Subject: |
01/01: gnu: Add redshift. |
Date: |
Sun, 13 Dec 2015 23:33:59 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 6645753b463ffc45e7161c33801fd8e80c9a209b
Author: Florian Paul Schmidt <address@hidden>
Date: Thu Dec 10 08:57:57 2015 +0100
gnu: Add redshift.
* gnu/packages/xdisorg.scm (redshift): New variable.
Co-authored-by: Ludovic Courtès <address@hidden>
---
gnu/packages/xdisorg.scm | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4b5308c..efe8586 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2015 Alexander I.Grafov <address@hidden>
;;; Copyright © 2015 Andy Wingo <address@hidden>
;;; Copyright © 2015 xd1le <address@hidden>
+;;; Copyright © 2015 Florian Paul Schmidt <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -655,3 +656,37 @@ 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)
+ ("glib" ,glib))) ;for Geoclue2 support
+ (home-page "https://github.com/jonls/redshift")
+ (synopsis "Adjust the color temperature of your screen")
+ (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+)))