From: florhizome@posteo.net
To: 60013@debbugs.gnu.org
Cc: florhizome <florhizome@posteo.net>
Subject: [bug#60013] [PATCH 2/3] gnu: Add clightd
Date: Mon, 12 Dec 2022 20:31:20 +0000 [thread overview]
Message-ID: <5004a8b824881df48dbf6304de630d07709ada12.1670876889.git.florhizome@posteo.net> (raw)
In-Reply-To: <91575b0f95b5a71b18108b57fa1a366e0f6044c9.1670876889.git.florhizome@posteo.net>
From: florhizome <florhizome@posteo.net>
* gnu/packages/wm.scm (clightd): New variable.
---
gnu/packages/wm.scm | 69 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 86573658f4..919bcc9400 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -61,6 +61,7 @@
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2022 zamfofex <zamfofex@twdb.moe>
;;;
+;;; Copyright © 2022 florhizome <florhizome@posteo.net>
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
@@ -102,6 +103,7 @@ (define-module (gnu packages wm)
#:use-module (gnu packages calendar)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp)
+ #:use-module (gnu packages c)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages docbook)
#:use-module (gnu packages documentation)
@@ -114,6 +116,7 @@ (define-module (gnu packages wm)
#:use-module (gnu packages gperf)
#:use-module (gnu packages gtk)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages hardware)
#:use-module (gnu packages haskell-check)
#:use-module (gnu packages haskell-web)
#:use-module (gnu packages haskell-xyz)
@@ -121,6 +124,7 @@ (define-module (gnu packages wm)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
#:use-module (gnu packages lisp-check)
#:use-module (gnu packages lisp-xyz)
@@ -132,6 +136,7 @@ (define-module (gnu packages wm)
#:use-module (gnu packages mpd)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages polkit)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages pulseaudio)
@@ -188,6 +193,70 @@ (define-public bspwm
the leaves of a full binary tree.")
(license license:bsd-2)))
+
+(define-public clightd
+ (package
+ (name "clightd")
+ (version "5.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/FedeDP/clightd")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1b6hc98vk0nm06plld4rgk70f825g8kakcxrv2prsxxvkvlqrmp1"))))
+ (build-system cmake-build-system)
+ (native-inputs (list pkg-config libmodule))
+ (inputs (list elogind
+ eudev
+ dbus
+ ddcutil
+ libdrm
+ libjpeg-turbo
+ libmodule
+ libxrandr
+ libdrm
+ libusb
+ libx11
+ libxext
+ polkit-duktape
+ wayland
+ wayland-protocols))
+ (arguments
+ (list
+ #:tests? #f ;;;tests not found
+ #:configure-flags #~(list "-DENABLE_GAMMA=1"
+ "-DENABLE_DPMS=1"
+ "-DENABLE_DDC=1"
+ "-DENABLE_SCREEN=1"
+ "-DENABLE_YOCTOLIGHT=1"
+ (string-append "-DMODULE_LOAD_DIR=" #$output
+ "/etc/modprobe.d")
+ (string-append "-DDBUS_CONFIG_DIR=" #$output
+ "/share/dbus-1/system.d"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after
+ 'patch-source-shebangs 'patch-target-dirs
+ (lambda _
+ (substitute* "./CMakeLists.txt"
+ (("DESTINATION \\$\\{SYSTEM_BUS_DIR\\}")
+ (string-append "DESTINATION "
+ #$output "/share/dbus-1/system-services"))
+ (("DESTINATION \\$\\{POLKIT_ACTION_DIR\\}")
+ (string-append "DESTINATION "
+ #$output "/share/polkit-1/actions"))))))))
+ (home-page "https://github.com/FedeDP/Clightd")
+ (description "Bus interface for many display capabilities")
+ (synopsis "Clightd is a bus interface that lets you easily set/get screen
+ brightness, gamma temperature and display dpms state. Moreover, it enables
+ getting ambient brightness through webcam frames capture or ALS devices.
+
+ It works on X, Wayland and tty.")
+ (license license:gpl3)))
+
(define-public herbstluftwm
(package
(name "herbstluftwm")
--
2.38.1
next prev parent reply other threads:[~2022-12-12 20:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 16:53 [bug#60013] [PATCH] gnu: Add clight Florian
2022-12-12 19:16 ` zimoun
2022-12-12 20:51 ` Tobias Geerinckx-Rice via Guix-patches via
2022-12-12 20:31 ` [bug#60013] [PATCH 1/3] gnu: Add libmodule florhizome
2022-12-12 20:31 ` florhizome [this message]
2022-12-12 21:53 ` [bug#60013] [PATCH 2/3] gnu: Add clightd ( via Guix-patches via
2022-12-12 20:31 ` [bug#60013] [PATCH 3/3] gnu: Add clight florhizome
2022-12-12 21:57 ` ( via Guix-patches via
2022-12-12 21:00 ` [bug#60013] [PATCH 1/3] gnu: Add libmodule ( via Guix-patches via
2022-12-12 23:48 ` zimoun
2022-12-13 11:51 ` Florian
2022-12-15 11:31 ` zimoun
2022-12-20 16:33 ` Florian
2022-12-21 11:22 ` ( via Guix-patches via
2022-12-30 12:45 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5004a8b824881df48dbf6304de630d07709ada12.1670876889.git.florhizome@posteo.net \
--to=florhizome@posteo.net \
--cc=60013@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).