From patchwork Sat Dec 25 11:30:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 35645 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 D630527BBEA; Sat, 25 Dec 2021 11:32:18 +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 9F92A27BBE9 for ; Sat, 25 Dec 2021 11:32:18 +0000 (GMT) Received: from localhost ([::1]:48638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n15Hd-00059p-Ow for patchwork@mira.cbaines.net; Sat, 25 Dec 2021 06:32:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n15HO-00059h-NC for guix-patches@gnu.org; Sat, 25 Dec 2021 06:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n15HO-0002bE-BY for guix-patches@gnu.org; Sat, 25 Dec 2021 06:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n15HO-0000pF-64 for guix-patches@gnu.org; Sat, 25 Dec 2021 06:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52738] [PATCH v2] gnu: Add poweralertd Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Dec 2021 11:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52738 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen , 52738@debbugs.gnu.org Cc: Josselin Poiret Received: via spool by 52738-submit@debbugs.gnu.org id=B52738.16404318823096 (code B ref 52738); Sat, 25 Dec 2021 11:32:02 +0000 Received: (at 52738) by debbugs.gnu.org; 25 Dec 2021 11:31:22 +0000 Received: from localhost ([127.0.0.1]:38569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n15Gj-0000ns-Lw for submit@debbugs.gnu.org; Sat, 25 Dec 2021 06:31:21 -0500 Received: from jpoiret.xyz ([206.189.101.64]:55838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n15Gf-0000na-Mf for 52738@debbugs.gnu.org; Sat, 25 Dec 2021 06:31:20 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 0B965184F5D; Sat, 25 Dec 2021 11:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1640431875; 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: in-reply-to:in-reply-to:references:references; bh=WDGnzon60ORnTjlS1rIt0uhPLOf0PagjQZUuABwSPFo=; b=Kz0pmL5PRUWcORGb4H3rmBlNftAaI2QXad4FloNw+1NA7ksjZygMHav4x4UIas79pcalSs IeKm982g+gVKXBsLA9zuep33ysQjUyZe0bKFDH1HvxSH5LvQK6a6soOsm2TrY1CVPEdj/a nenOFUCbfLQ97ioHgDY6zCCKexASKtFEBzkbzjJPqBRjDO/Liz+JR0u6fKaY9oeJrhBP+U KYuC6zP44j2Miy97oy2Dn7ZntpBzyP8iy+VOY1ahNG3dmU4/jKb8R2HWag8gOhmUL6AGFr hPfkUBP6yNrEGC5DkVTWjW8S9GvxHZxR5JtqDRtrGMvpUxsKAbfBFU/sr4A7sA== Date: Sat, 25 Dec 2021 12:30:57 +0100 Message-Id: <0a8b39174e03f0583b37b1dca60939fac0f579d0.1640431378.git.dev@jpoiret.xyz> In-Reply-To: <87ee63d18s.fsf@yoctocell.xyz> References: <87ee63d18s.fsf@yoctocell.xyz> MIME-Version: 1.0 X-Spamd-Bar: ++++ Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz 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. --- Hello, Here is a modified patch with those changes. Thanks for the review! Best, Josselin gnu/packages/freedesktop.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index dcd1870e41..e8e1cb9ca4 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://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")