From patchwork Wed Dec 22 17:51:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 35586 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 825E227BBE9; Wed, 22 Dec 2021 17:58:37 +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=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no 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 C0B2127BBEA for ; Wed, 22 Dec 2021 17:58:35 +0000 (GMT) Received: from localhost ([::1]:42898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n05so-0007AY-U9 for patchwork@mira.cbaines.net; Wed, 22 Dec 2021 12:58:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05mU-00036a-Om for guix-patches@gnu.org; Wed, 22 Dec 2021 12:52:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n05mU-0001G7-Dx for guix-patches@gnu.org; Wed, 22 Dec 2021 12:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n05mU-0003cP-AB for guix-patches@gnu.org; Wed, 22 Dec 2021 12:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52738] [PATCH] gnu: Add poweralertd Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52738 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52738@debbugs.gnu.org Cc: Josselin Poiret X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164019551113888 (code B ref -1); Wed, 22 Dec 2021 17:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Dec 2021 17:51:51 +0000 Received: from localhost ([127.0.0.1]:59683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05mJ-0003bw-2q for submit@debbugs.gnu.org; Wed, 22 Dec 2021 12:51:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:53914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05mH-0003bo-9b for submit@debbugs.gnu.org; Wed, 22 Dec 2021 12:51:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05mG-0002ny-W0 for guix-patches@gnu.org; Wed, 22 Dec 2021 12:51:49 -0500 Received: from jpoiret.xyz ([206.189.101.64]:45712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05mD-0001EJ-MZ for guix-patches@gnu.org; Wed, 22 Dec 2021 12:51:48 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 1B6A1184F5D; Wed, 22 Dec 2021 17:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1640195502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=I2ZD9w2h++SwBLJyfPsGFNgnejZx9BTVmqrVB0HZ3Ug=; b=AVTsfwdydcPb1ETyaQTEkX9bUptHvDutIbgC+4WRC+lIGEMieRwi5aqMoW86spPop2zPLH mZUBQPQQTL5kcVWDUNani+2OOOG16MMKwSLOvlwjQRM0lT/T/THAQwhTWt9CGc9oSRtq5p 7uu0gBc6N0M3g21uJOqW+UulmucBt9otJwIja5kv69bbx1lZQqqYOrI+qS5Qy6aYdieQvw DUdFRGNuiahRjx2ySKZWx5khe6GnhJlwM1RU+DWBpf0Evgt2rVk24a2JwXdb9yPNQUbSeP +c100ZLWU2JPj7aI/4KhiBmDabsES3PVV/wJzCfZMpa7Iomay1NFJanBfm6Dag== Date: Wed, 22 Dec 2021 18:51:35 +0100 Message-Id: <20211222175135.8490-1-dev@jpoiret.xyz> MIME-Version: 1.0 X-Spamd-Bar: ++++ Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.397, PDS_OTHER_BAD_TLD=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Patchwork-Original-From: Josselin Poiret via Guix-patches via From: Josselin Poiret X-getmail-retrieved-from-mailbox: Patches * gnu/packages/freedesktop.scm (poweralertd): Add variable. --- gnu/packages/freedesktop.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index dcd1870e41..896f8e2847 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -2429,6 +2429,33 @@ (define-public xdg-desktop-portal-wlr compositors.") (license license:expat))) +(define-public poweralertd + (package + (name "poweralertd") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~kennylevinsen/poweralertd") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19rw9q4pcqw56nmzjfglfikzx5wwjl4n08awwdhg0jy1k0bm3dvp")))) + (build-system meson-build-system) + (arguments + '(#:configure-flags '("-Dman-pages=enabled"))) + (native-inputs + (list scdoc pkg-config bash-minimal)) + (inputs + (list elogind)) + (home-page "https://git.sr.ht/~kennylevinsen/poweralertd") + (synopsis "Power alert daemon") + (description "poweralertd is a daemon that watches for UPower events and +notifies the user using any notification daemon implementing +@code{org.freedesktop.Notifications}.") + (license license:gpl3))) + (define-public waypipe (package (name "waypipe")