From cf95ef7f446fbc5112ba52c036cc8f74718eefb3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 11 Feb 2021 20:50:39 +0100 Subject: gnu: Add gammastep. * gnu/packages/xdisorg.scm (gammastep): New variable. --- gnu/packages/xdisorg.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'gnu/packages/xdisorg.scm') diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 6b4d3f4a8a..978f0b91b9 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2020 James Smith ;;; Copyright © 2020 B. Wilson ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2021 Nicolas Goaziou ;;; ;;; This file is part of GNU Guix. ;;; @@ -1362,6 +1363,59 @@ This is a fork with added support for Wayland using the wlr-gamma-control protocol.") (license license:gpl3+)))) +(define-public gammastep + (package + (name "gammastep") + (version "2.0.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/chinstrap/gammastep") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11j54rdd3cgngdhjwyapwjbrdm8cii4i7g4zdvfykvmb1w4zdk7g")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-python-and-typelib + (lambda* (#:key outputs #:allow-other-keys) + ;; Gammastep GUI needs Typelib files from GTK and access + ;; to Python libraries. + (wrap-program (string-append (assoc-ref outputs "out") + "/bin/gammastep-indicator") + `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" ":" prefix + (,(getenv "GI_TYPELIB_PATH"))))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("gettext" ,gettext-minimal) + ("intltool" ,intltool) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("gtk" ,gtk+) + ("libappindicator" ,libappindicator) + ("libdrm" ,libdrm) + ("libX11" ,libx11) + ("libxxf86vm" ,libxxf86vm) + ("libxcb" ,libxcb) + ("python" ,python) + ("python-pygobject" ,python-pygobject) + ("python-pyxdg" ,python-pyxdg) + ("wayland" ,wayland))) + (home-page "https://gitlab.com/chinstrap/gammastep") + (synopsis "Adjust the color temperature of your screen") + (description + "Gammastep automatically adjusts the color temperature of your +screen according to your surroundings. This may help your eyes hurt +less if you are working in front of the screen at night.") + (license license:gpl3))) + (define-public xscreensaver (package (name "xscreensaver") -- cgit v1.2.3