From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yCF8Ev6Pl2MlnwAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 21:33:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sLG+Ef6Pl2Oi2wAAG6o9tA (envelope-from ) for ; Mon, 12 Dec 2022 21:33:02 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5F3E3F4C6 for ; Mon, 12 Dec 2022 21:33:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4pT3-0002q5-8G; Mon, 12 Dec 2022 15:32:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4pT0-0002pN-FD for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4pT0-0003Rs-6t for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4pSz-0003cP-W5 for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60013] [PATCH 2/3] gnu: Add clightd Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Dec 2022 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60013 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60013@debbugs.gnu.org Cc: florhizome Received: via spool by 60013-submit@debbugs.gnu.org id=B60013.167087709613883 (code B ref 60013); Mon, 12 Dec 2022 20:32:01 +0000 Received: (at 60013) by debbugs.gnu.org; 12 Dec 2022 20:31:36 +0000 Received: from localhost ([127.0.0.1]:55193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4pSZ-0003bq-Ti for submit@debbugs.gnu.org; Mon, 12 Dec 2022 15:31:36 -0500 Received: from mout01.posteo.de ([185.67.36.65]:39523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4pSX-0003bP-RV for 60013@debbugs.gnu.org; Mon, 12 Dec 2022 15:31:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 01983240027 for <60013@debbugs.gnu.org>; Mon, 12 Dec 2022 21:31:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670877088; bh=ChFUseCcQOrj0hbcsFLk3PQY2DK8mP3+PSyF70tj/5k=; h=From:To:Cc:Subject:Date:From; b=jvP7FkcHHQ0+VPg/GERHMImMh5lD+JC829EWXCEK8II0FpUbX3mzuOngN5i6HHRX0 WCfkc2gjb8aYaFIYnxu68bk1wOCNRxb7a6WAkdidJR+WNn4aWhJhcVWdnirG/njnja PUNsoJAb8rb3JlVItWsXUPAXGbXV0w89eJYjVvrG1Td+qb8I2OmawDIx3AoRyO+Lv0 U1iuqy2tYrh8mj1v1ltsIW79vXagry+YhwykHwe4JgmCRBv64hlKQaL66DX72p3b4U vKNFC8lcBSudzJmdQKU1WTqgZmcaRAUN4r9DCxSAZ5leBFEUregWbpS1Q18TOvxgRe 3sPufm+hruEtQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NWCvg2R6Hz6tmK; Mon, 12 Dec 2022 21:31:27 +0100 (CET) From: florhizome@posteo.net Date: Mon, 12 Dec 2022 20:31:20 +0000 Message-Id: <5004a8b824881df48dbf6304de630d07709ada12.1670876889.git.florhizome@posteo.net> In-Reply-To: <91575b0f95b5a71b18108b57fa1a366e0f6044c9.1670876889.git.florhizome@posteo.net> References: <91575b0f95b5a71b18108b57fa1a366e0f6044c9.1670876889.git.florhizome@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670877181; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=agjk/wqQRAZhciPyo6WjAkHFpQrM1P5Ot1gULlszwdo=; b=VaXIpkXIYE46lKeYjTfJEU4jYnWLB03eis7hY7w2dVpp/opo6p6XfY492B7jEU18oJshQm kqPT3FoiwIB3w+13ePuiHYwoqiuo1b6epmew+9MlVMc7xtn42DWJLLmg3MbQNZxaVzLaPw g17bqDEXlocvGEKLTCHGZblubvtg0Q9uFZI53B2H4K1bxj/aDDkvx9zbNwB6/aKgTmQy5P IRe88EPyW/O8vnjaoUMuIs2GMsDlp5WddECVPmDXEL0h/kvngdyI+t2peAxdbLzXYFQT3c A93X/i/qgOq45+0f/WnKxJF2LGGNjkcdRWshuNOA/dOtxpJPWoD89Ot/pSFRZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=jvP7FkcH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670877181; a=rsa-sha256; cv=none; b=VWubPdaTCJW/mwR0Q65phr1+uQAZtNTfItf1XK/0TxxFpvte+Lgrnm1jzLTVhZRxSTk/BS 7Pn/nUUaBHi5gBYo0yUXSWXbLX6Tu96Hr6Ma0JtZyTq4fdnHVnsciq253gMvzPNxL0jcfz HLb88RQQ+0SPwv3Ba60wSlleu9HzYztifzujkKnJFQ5lhHDQAXAtkidq4CWgKIBJhKbIel PeRwK1aq12P/PygctI4fdjk08WdlYDXTanr7qhKi+yhACnBvhGxlIN7YFu63OLQSaYPSvT 92F1o99Rf7d564Mk6tKJMaz6dwAzzK+MQB6HyahNtqPGp9L7kvH1t90lTpJELw== X-Migadu-Spam-Score: 6.34 X-Spam-Score: 6.34 X-Migadu-Queue-Id: C5F3E3F4C6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=jvP7FkcH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) X-TUID: KZpwQJnQAKLf From: florhizome * 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 ( ;;; Copyright © 2022 zamfofex ;;; +;;; Copyright © 2022 florhizome ;;; 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