From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43553) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPnih-000384-SK for guix-patches@gnu.org; Wed, 30 Oct 2019 09:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPnig-00054R-Mh for guix-patches@gnu.org; Wed, 30 Oct 2019 09:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPnig-00054C-JG for guix-patches@gnu.org; Wed, 30 Oct 2019 09:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPnig-0002dT-DX for guix-patches@gnu.org; Wed, 30 Oct 2019 09:09:02 -0400 Subject: [bug#37991] [PATCH] gnu: Add redshift-wayland Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:43482) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPniP-00037h-W7 for guix-patches@gnu.org; Wed, 30 Oct 2019 09:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPniO-0004sj-Kd for guix-patches@gnu.org; Wed, 30 Oct 2019 09:08:45 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:41781) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPniN-0004pB-SV for guix-patches@gnu.org; Wed, 30 Oct 2019 09:08:44 -0400 From: Josh Holland Date: Wed, 30 Oct 2019 13:08:36 +0000 Message-Id: <20191030130836.728314-1-josh@inv.alid.pw> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37991@debbugs.gnu.org Cc: Josh Holland * gnu/packages/xdisorg.scm (redshift-wayland): New variable. --- I am not sure if the package name and description are appropriate - please change if they are not. gnu/packages/xdisorg.scm | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 17dc16b44c..010dd9d048 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -1103,6 +1103,49 @@ 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+))) +(define-public redshift-wayland + (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804") + (revision "1")) + (package + (name "redshift-wayland") + (version (string-append "1.12-" + revision "." (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/minus7/redshift.git") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("intltool" ,intltool))) + (inputs + `(("libdrm" ,libdrm) + ("libx11" ,libx11) + ("libxcb" ,libxcb) + ("libxxf86vm" ,libxxf86vm) + ("glib" ,glib) ; for Geoclue2 support + ("wayland" ,wayland))) + (home-page "https://github.com/minus7/redshift") + (synopsis "Adjust the color temperature of your screen (with Wayland support)") + (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. + +This is a fork with added support for Wayland using the wlr-gamma-control +protocol.") + (license license:gpl3+)))) + (define-public xscreensaver (package (name "xscreensaver") -- 2.23.0