From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iADPIMmPB2LwfgAAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 11:45:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CEONHcmPB2LHZwAAauVa8A (envelope-from ) for ; Sat, 12 Feb 2022 11:45:29 +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 067A11628C for ; Sat, 12 Feb 2022 11:45:29 +0100 (CET) Received: from localhost ([::1]:46530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIpuC-0005qp-3X for larch@yhetil.org; Sat, 12 Feb 2022 05:45:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIptp-0005qM-1U for guix-patches@gnu.org; Sat, 12 Feb 2022 05:45:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIptm-0007ao-O5 for guix-patches@gnu.org; Sat, 12 Feb 2022 05:45:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIptm-0000Es-L8 for guix-patches@gnu.org; Sat, 12 Feb 2022 05:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53953] [PATCH] gnu: Add acpilight. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Feb 2022 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53953 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53953@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1644662691879 (code B ref -1); Sat, 12 Feb 2022 10:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2022 10:44:51 +0000 Received: from localhost ([127.0.0.1]:33580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIptY-0000E2-02 for submit@debbugs.gnu.org; Sat, 12 Feb 2022 05:44:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:53788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIptU-0000Dr-0z for submit@debbugs.gnu.org; Sat, 12 Feb 2022 05:44:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIptS-0005ns-Ib for guix-patches@gnu.org; Sat, 12 Feb 2022 05:44:43 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIptQ-0007YI-Au for guix-patches@gnu.org; Sat, 12 Feb 2022 05:44:42 -0500 Received: (Authenticated sender: brice@waegenei.re) by mail.gandi.net (Postfix) with ESMTPSA id 18D0020002 for ; Sat, 12 Feb 2022 10:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waegenei.re; s=gm1; t=1644662676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xwEJ01BeuFxVeiQNwmwOpyeXGwH5qcs1nU8LCY+44XU=; b=GMl2w7xA0LFSyOf4N8cPdKg1o4wfd4aMAxHHPzlwg4Q0d+S+A1YDD6HlJ1UPVGP6lJU6zO mvg1PjCd9WDwDhsvhWevFgAcTEbdCjccHmDdBfLc8ihRSeoQvUxxXrb9VPAopaf7eLjOmU 3JDd1+Op1qNKNQaj0J3YaMDKbt0MqlZ1y802ioOtrlFuCIVt3zQXA3LdilYMuwzHL2II9t uAW+xowwWGM7+e/jTM9xcFxxFQKqnWpSlWRkJQzb2c1DIaDuvtfyLQTcs3sSCTxaA3qiaq wJljycsmrUvtEMQOuAWYXoKVKXg0u6fAo1Xyj95galQtzX9VLqY5rLQ64s3f2w== From: Brice Waegeneire Date: Sat, 12 Feb 2022 11:44:32 +0100 Message-Id: <20220212104432.22611-1-brice@waegenei.re> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.200; envelope-from=brice@waegenei.re; helo=relay7-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644662729; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xwEJ01BeuFxVeiQNwmwOpyeXGwH5qcs1nU8LCY+44XU=; b=kpNzWRVw3/7C1fGW295/NZHW4E0yYQc9Kb6LTIWjLUUjDyX+p0ll9MfFULEGbKj3jN2fuK ikGfsGpza28VVJs0LrD+Vd81PSkGdpi5xBgjjekJq4QG92MUcsbcgCzy60ve8oQvCypYIQ s6e2XcUG6m6Aw7LjNKK0gBy3poLp2jCtBEk6KaADm7nydseBelX4DmchlOBNHZ9bIfP7rG F+G3NLIbvFrsyTI6RJAyamV3pqDwQ1kzZ9msQdcbA6vJD/1hKJ2UfEGYU6emseP26Vec7R 9qWYIMXHOIfFxhSgR+HFIQxfbPYHlt8R6HEAFK0JvncXW8tRnVd9q2lB2P/oFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644662729; a=rsa-sha256; cv=none; b=b845jJBbPHF6xzB7x7KhGzHwS6rifIOpFPjKVV8fXNQ/WbhnlkLgOoURUjVoH4+SBzdAcr KRqXpcYx+TfBsqmbmo9b0mex0O5gjuvh8COH0El0Mcm4OKaWYIXeyju0Gj7krBP+7+M0rM n9uZLrl3Y1ExoYSbtq4BOfCJ8u6sEaBm9KRNRhwmLQlPgX4oZygLE5zenkie8MC2BJDyGA /BLBGZYZwxxnrkx996oTMG4L5U1VBAmE6S5gODimIAdszM0fBNGICEHcwiJRvoAUOuCSoW B3CIkI37tkQVsrD6lrPTnA+26Y4xHWYfxQ1x5DOI74jB6mE27W2fTEqV5xclPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=waegenei.re header.s=gm1 header.b=GMl2w7xA; dmarc=none; 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" X-Migadu-Spam-Score: -1.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=waegenei.re header.s=gm1 header.b=GMl2w7xA; dmarc=none; 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" X-Migadu-Queue-Id: 067A11628C X-Spam-Score: -1.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: uTbQlKLI1XOW * gnu/packages/linux.scm (acpilight): New variable. --- gnu/packages/linux.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index bcbaa2166d..2d6c024906 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2019 Tim Gesthuizen ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer ;;; Copyright © 2019 Stefan Stefanović -;;; Copyright © 2019, 2020, 2021 Brice Waegeneire +;;; Copyright © 2019-2022 Brice Waegeneire ;;; Copyright © 2019 Kei Kebreau ;;; Copyright © 2020, 2021 Oleg Pykhalov ;;; Copyright © 2020 Pierre Neidhardt @@ -8806,3 +8806,43 @@ (define-public libgpiod (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public acpilight + (package + (name "acpilight") + (version "1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/wavexx/acpilight.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;no tests + #:make-flags (list "prefix=" + (string-append "DESTDIR=" + (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("udevadm") "true")) + (substitute* "90-backlight.rules" + (("/bin") + (string-append (assoc-ref inputs "coreutils") "/bin"))) + #t))))) + (inputs + (list python)) + (home-page "https://gitlab.com/wavexx/acpilight") + (synopsis "Backward-compatibile xbacklight replacement") + (description "acpilight is a backward-compatibile replacement for +xbacklight that uses the ACPI interface to set the display +brightness. On modern laptops acpilight can control both display and +keyboard backlight uniformly on either X11, the console or Wayland.") + (license license:gpl3+))) base-commit: 068d99978a0c9c6fb66f95455060c8d08ba55ac5 -- 2.34.0