From patchwork Sat Feb 12 10:44:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 37211 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 65B8B27BBEA; Sat, 12 Feb 2022 10:45:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1479E27BBE9 for ; Sat, 12 Feb 2022 10:45:24 +0000 (GMT) Received: from localhost ([::1]:46530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIpu7-0005qp-88 for patchwork@mira.cbaines.net; Sat, 12 Feb 2022 05:45:23 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (acpilight): New variable. --- gnu/packages/linux.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) base-commit: 068d99978a0c9c6fb66f95455060c8d08ba55ac5 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+)))