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 8C50DfKPl2MlnwAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 21:32:50 +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 yJG3DPKPl2PhNwAAG6o9tA (envelope-from ) for ; Mon, 12 Dec 2022 21:32:50 +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 DBBE43F2CE for ; Mon, 12 Dec 2022 21:32:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4pT5-0002qn-7v; Mon, 12 Dec 2022 15:32:07 -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 1p4pT1-0002pW-83 for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:03 -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 1p4pT1-0003S3-04 for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4pT0-0003cf-Rt for guix-patches@gnu.org; Mon, 12 Dec 2022 15:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60013] [PATCH 3/3] gnu: Add clight Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Dec 2022 20:32:02 +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.167087709713896 (code B ref 60013); Mon, 12 Dec 2022 20:32:02 +0000 Received: (at 60013) by debbugs.gnu.org; 12 Dec 2022 20:31:37 +0000 Received: from localhost ([127.0.0.1]:55197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4pSb-0003bz-0x for submit@debbugs.gnu.org; Mon, 12 Dec 2022 15:31:37 -0500 Received: from mout02.posteo.de ([185.67.36.66]:59355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4pSY-0003bR-Lb for 60013@debbugs.gnu.org; Mon, 12 Dec 2022 15:31:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2D6AC240101 for <60013@debbugs.gnu.org>; Mon, 12 Dec 2022 21:31:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670877089; bh=L6Re6Ie1NlJLGiqkbMa8RlVjIZrfmxue1DICbnwvgO4=; h=From:To:Cc:Subject:Date:From; b=L9k7VVUSJxttO6MxCfAExdEAh+l+97IdDE7XGpDLeQoOdlQ0yEKcNLt7sg/3nH1kl 8lphhZv3E9M2x4Nk9pu2XhnVkXhU2hEHzAbSblIJfKXHlWzrsxpjyk22nGuw++uEU9 6luUiGNwZYGBxczc6lc1OnZsfgAUNJgJi7JmlwYm78zlTCi9ixTW3ILdrtQFI7x+uF qy5A/0FGgRGdfCXn8x4OH4nYslAQo6S5/T+AMGsrizKKvuIbVmPenSvZ9Stkagml2Q ppA6UISmEq9sDerSgy4/z5cFqwuKRM3Tt6CbLQ0pOCpBf2gaP2DAcJk0xR1a7POVLX yu1U2q6kcz28Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NWCvh5tbvz6tmJ; Mon, 12 Dec 2022 21:31:28 +0100 (CET) From: florhizome@posteo.net Date: Mon, 12 Dec 2022 20:31:21 +0000 Message-Id: <8aaa5bfe2bdb7b409ae0ba210437d9b4c5063359.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-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=1670877169; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=4jdWSp5XP01isXFuVzrZ2KsiYClK16kGh402M/EIzQM=; b=t8fNZQjAL4etz9cwop5Bi6ndgjRqgMuHUmkJGp7r4iZUIeh2jI+1XsN/+qfmDNY7kDGLse ELMgHTAIIA0As1k98jIW1zmAUfFBebSa8qdWywBzp85gBFd2l8/0FMmb2rYXsJrnvzUCUc dlELMJ6e7/gph/I1Lk2wnPb3jUzkUgHe18mDSfuKFzVZ09SGnPjag16zjngpVuxaaNuuTw ZL6Pkt+XVRF6wP1+HmOw7tHdkIwzembAJRBfKks85b3VIMu3qxusdQFfreXnnkfKGvk5bu SHpjfod7/5TkAZyQg2mRmf9VpCy4+8HYVT3PRs/B9uP4bXYgfDROB2LOe5vbfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=L9k7VVUS; 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=1670877169; a=rsa-sha256; cv=none; b=FOvjjDshCXTQ1XsxTQeN8iqTVYqwVvXO6K2mPhkU8roOiVoEn8Hf35UQfIJIkP5suLdv2o ACxy9o2IUB08R2r8BaqceViKvCWVUKZXtVQ+6LmM329Ssu+G8D9KwdB+1MpwvYCz6wytfr ntheqSn4MU7v7MtWjLtEHmozTo10E41qAR89/orWZPnL2Ss186gebk4zzqnXJJkHQgSuWZ bUJGFO07RJtJBKj6YF3+hNDaPA+l+EwyWy1hKxKDyk0JHKNgE1kZ7ErEapjrCan0GBD1ks hUGyLDx4nnBdXElodrgQCH5vx4ucnbb5Bwomy4E/29M9sH2+nmxRKwhkTo0AAQ== X-Migadu-Spam-Score: -0.46 X-Spam-Score: -0.46 X-Migadu-Queue-Id: DBBE43F2CE X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=L9k7VVUS; 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: mzWgd0UkfU+q From: florhizome * gnu/packages/wm.scm (clight): New variable. --- gnu/packages/wm.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 919bcc9400..f7435e69f8 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -137,6 +137,7 @@ (define-module (gnu packages wm) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages polkit) + #:use-module (gnu packages popt) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) @@ -194,6 +195,61 @@ (define-public bspwm (license license:bsd-2))) +(define-public clight + (package + (name "clight") + (version "4.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FedeDP/clight") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09hf80kb01xwzr8p87d5r8rw1dq9jqdibyc7k2xc4z5v5j7hlnlv")))) + (build-system cmake-build-system) + (native-inputs (list pkg-config)) + (inputs (list clightd + dbus + ddcutil + elogind + gsl + geoclue + libconfig + libmodule + popt + upower)) + (arguments + (list + #:tests? #f ;no rule to make target test + #:configure-flags + #~(list (string-append "-DBASH_COMPLETIONS_DIR=" + #$output "/share/bash-completion/completions") + (string-append "-DFISH_COMPLETIONS_DIR=" + #$output "/share/fish/completions")) + #:phases + #~(modify-phases %standard-phases + (add-after + 'patch-source-shebangs 'patch-target-dirs + (lambda _ + (substitute* + "./CMakeLists.txt" + (("DESTINATION \\$\\{SESSION_BUS_DIR\\}") + (string-append "DESTINATION " #$output "/share/dbus-1/services")) + (("DESTINATION /etc/xdg/autostart") + (string-append "DESTINATION " #$output "/etc/xdg/autostart")) + (("DESTINATION /usr/share/*") + (string-append "DESTINATION " #$output "/share/*"))) + #t))))) + (home-page "https://github.com/FedeDP/Clight") + (synopsis "User daemon utility to fully manage screens") + (description "Clight is a tiny C utility that can turn your webcam +into a light sensor; moreover it supports a redshift-like gamma +control, a screen dimmer and dpms settings. +It is the userspace interface for clightd.") + (license license:gpl3))) + (define-public clightd (package (name "clightd") -- 2.38.1