GNU bug report logs - #57731
[PATCH 0/1] Add batsignal package

Previous Next

Package: guix-patches;

Reported by: M <matf <at> disr.it>

Date: Sun, 11 Sep 2022 13:44:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57731 in the body.
You can then email your comments to 57731 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 13:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to M <matf <at> disr.it>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 11 Sep 2022 13:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: guix-patches <at> gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH 0/1] Add batsignal package
Date: Sun, 11 Sep 2022 15:43:05 +0200
batsignal can send desktop notifications at set battery levels, and can run a
command when the battery level gets dangerously low. This can be used to force
powering off a laptop when battery gets below critical levels, instead of
damaging the battery.

M (1):
  gnu: Add batsignal.

 gnu/packages/monitoring.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 13:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: 57731 <at> debbugs.gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH 1/1] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 15:47:34 +0200
* gnu/packages/monitoring.scm (batsignal): New variable.
---
 gnu/packages/monitoring.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..bccf03ae06 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -12,6 +12,8 @@
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +52,7 @@ (define-module (gnu packages monitoring)
   #:use-module (gnu packages django)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages image)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages ncurses)
@@ -764,3 +767,34 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f ;; batsignal's tests depend on docker
+           #:phases
+           #~(modify-phases %standard-phases (delete 'configure))
+           #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Simple power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power
+levels, notifying the user and optionally running a command when
+it reaches user-configured power thresholds.")
+    (license license:isc)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 14:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: M <matf <at> disr.it>, 57731 <at> debbugs.gnu.org
Subject: Re: [PATCH 1/1] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 16:02:19 +0200
Hi

Am Sonntag, dem 11.09.2022 um 15:47 +0200 schrieb M:
> * gnu/packages/monitoring.scm (batsignal): New variable.
> ---
>  gnu/packages/monitoring.scm | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
> 
> diff --git a/gnu/packages/monitoring.scm
> b/gnu/packages/monitoring.scm
> index 47845700ee..bccf03ae06 100644
> --- a/gnu/packages/monitoring.scm
> +++ b/gnu/packages/monitoring.scm
> @@ -12,6 +12,8 @@
>  ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
>  ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
>  ;;; Copyright © 2022 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
> +;;; Copyright © 2022 ( <paren <at> disroot.org>
> +;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
Did you two co-author the patch?  If so, add a "Co-authored-by" trailer
to the commit message.  Also, your copyright mail does not match the
sender, you may want to fix that.
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -50,6 +52,7 @@ (define-module (gnu packages monitoring)
>    #:use-module (gnu packages django)
>    #:use-module (gnu packages gd)
>    #:use-module (gnu packages gettext)
> +  #:use-module (gnu packages gnome)
>    #:use-module (gnu packages image)
>    #:use-module (gnu packages mail)
>    #:use-module (gnu packages ncurses)
> @@ -764,3 +767,34 @@ (define-public python-statsd
>      (description "StatsD is a friendly front-end to Graphite.  This
> package
>  provides a simple Python client for the StatsD daemon.")
>      (license license:expat)))
> +
> +(define-public batsignal
> +  (package
> +    (name "batsignal")
> +    (version "1.6.0")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url
> "https://github.com/electrickite/batsignal")
> +                    (commit version)))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +               
> "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     (list #:tests? #f ;; batsignal's tests depend on docker
The test appears to be running "batsignal -v", which we could do in the
build container as well.
> +           #:phases
> +           #~(modify-phases %standard-phases (delete 'configure))
By convention #:phases is the last argument to set.
> +           #:make-flags
> +           #~(list (string-append "PREFIX=" #$output)
> +                   (string-append "CC=" #$(cc-for-target)))))
> +    (inputs (list libnotify))
> +    (native-inputs (list pkg-config))
> +    (home-page "https://github.com/electrickite/batsignal")
> +    (synopsis "Simple power monitoring tool")
"Power monitoring tool"
> +    (description
> +     "This package provides a daemon that monitors device power
> +levels, notifying the user and optionally running a command when
> +it reaches user-configured power thresholds.")
> +    (license license:isc)))
Cheers.





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 14:32:02 GMT) Full text and rfc822 format available.

Message #14 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: M <matf <at> disr.it>, 57731 <at> debbugs.gnu.org
Subject: Re: [bug#57731] [PATCH 1/1] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 16:31:20 +0200
[Message part 1 (text/plain, inline)]

On 11-09-2022 15:47, M wrote:
> +    (arguments
> +     (list #:tests? #f ;; batsignal's tests depend on docker
> +           #:phases
> +           #~(modify-phases %standard-phases (delete 'configure))
> +           #:make-flags
> +           #~(list (string-append "PREFIX=" #$output)
> +                   (string-append "CC=" #$(cc-for-target)))))
> +    (inputs (list libnotify))

The makefile uses pkg-config.  However, when cross-compiling,
TARGET-pkg-config is required instead.  To solve this, you will need to 
'substitute*' pkg-config to #$(pkg-config-for-target).  For an example, 
see opensmtpd-filter-dkimsign.

(Unfortunately the dependency libtirpc is not yet cross-compilable ...)

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 14:35:01 GMT) Full text and rfc822 format available.

Message #17 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: M <matf <at> disr.it>, 57731 <at> debbugs.gnu.org
Subject: Re: [bug#57731] [PATCH 0/1] Add batsignal package
Date: Sun, 11 Sep 2022 16:34:45 +0200
[Message part 1 (text/plain, inline)]

On 11-09-2022 15:43, M wrote:
> batsignal can send desktop notifications at set battery levels, and can run a
> command when the battery level gets dangerously low. This can be used to force
> powering off a laptop when battery gets below critical levels, instead of
> damaging the battery.

This looks like a good description to me, can you integrate the 'This 
can be used to force powering off a laptop when the battery gets below 
critical levels, instead of damaging the battery’ in the package 
description?  It seems like a widely useful and simple example usage.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 16:13:02 GMT) Full text and rfc822 format available.

Message #20 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: 57731 <at> debbugs.gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH v2] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 18:12:13 +0200
* gnu/packages/monitoring.scm (batsignal): New variable.
  Co-authored by unmatched-paren and matf
---
 gnu/packages/monitoring.scm | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..459b8d8539 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -12,6 +12,8 @@
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +52,7 @@ (define-module (gnu packages monitoring)
   #:use-module (gnu packages django)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages image)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages ncurses)
@@ -764,3 +767,45 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure)
+                            (replace 'check
+               (lambda* (#:key tests? #:allow-other-keys)
+                 (when tests?
+                   (invoke "./batsignal" "-v")))))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power
+levels, notifying the user and optionally running a command when
+it reaches user-configured power thresholds. This can be used to force powering
+off a laptop when the battery gets below critical levels, instead of damaging
+the battery.")
+    (license license:isc)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 19:17:01 GMT) Full text and rfc822 format available.

Message #23 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: 57731 <at> debbugs.gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH 1/1] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 21:16:35 +0200
* gnu/packages/monitoring.scm (batsignal): New variable.
  Co-authored-by: ( <paren <at> disroot.org>
---
 gnu/packages/monitoring.scm | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..7f665e931f 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -12,6 +12,8 @@
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +52,7 @@ (define-module (gnu packages monitoring)
   #:use-module (gnu packages django)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages image)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages ncurses)
@@ -764,3 +767,45 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure)
+                            (replace 'check
+               (lambda* (#:key tests? #:allow-other-keys)
+                 (when tests?
+                   (invoke "./batsignal" "-v")))))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power levels,
+notifying the user and optionally running a command when it reaches
+user-configured power thresholds.  This can be used to force powering off a
+laptop when the battery gets below critical levels, instead of damaging the
+battery.")
+    (license license:isc)))
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 19:30:01 GMT) Full text and rfc822 format available.

Message #26 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: 57731 <at> debbugs.gnu.org
Cc: "\(" <paren <at> disroot.org>, M <matf <at> disr.it>
Subject: [PATCH v4] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 21:29:05 +0200
* gnu/packages/monitoring.scm (batsignal): New variable.

Co-authored-by: ( <paren <at> disroot.org>
---
 gnu/packages/monitoring.scm | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..608973f9c2 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -764,3 +764,46 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure)
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "./batsignal" "-v")))))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power levels,
+notifying the user and optionally running a command when it reaches
+user-configured power thresholds.  This can be used to force powering off a
+laptop when the battery gets below critical levels, instead of damaging the
+battery.")
+    (license license:isc)))
+
-- 
2.37.2





Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 19:33:01 GMT) Full text and rfc822 format available.

Message #29 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "M" <matf <at> disr.it>, <57731 <at> debbugs.gnu.org>
Subject: Re: [PATCH v4] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 20:32:20 +0100
LGTM!

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sun, 11 Sep 2022 19:43:01 GMT) Full text and rfc822 format available.

Message #32 received at 57731 <at> debbugs.gnu.org (full text, mbox):

From: M <matf <at> disr.it>
To: 57731 <at> debbugs.gnu.org
Cc: "\(" <paren <at> disroot.org>, M <matf <at> disr.it>
Subject: [PATCH v5] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 21:42:11 +0200
* gnu/packages/monitoring.scm (batsignal): New variable.

Co-authored-by: ( <paren <at> disroot.org>
---
 gnu/packages/monitoring.scm | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..8f75eacf9e 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -12,6 +12,8 @@
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -764,3 +766,46 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure)
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "./batsignal" "-v")))))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power levels,
+notifying the user and optionally running a command when it reaches
+user-configured power thresholds.  This can be used to force powering off a
+laptop when the battery gets below critical levels, instead of damaging the
+battery.")
+    (license license:isc)))
+
-- 
2.37.2





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 24 Sep 2022 13:57:01 GMT) Full text and rfc822 format available.

Notification sent to M <matf <at> disr.it>:
bug acknowledged by developer. (Sat, 24 Sep 2022 13:57:02 GMT) Full text and rfc822 format available.

Message #37 received at 57731-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: M <matf <at> disr.it>
Cc: "\(" <paren <at> disroot.org>, 57731-done <at> debbugs.gnu.org
Subject: Re: bug#57731: [PATCH 0/1] Add batsignal package
Date: Sat, 24 Sep 2022 15:56:50 +0200
Hi,

M <matf <at> disr.it> skribis:

> * gnu/packages/monitoring.scm (batsignal): New variable.
>
> Co-authored-by: ( <paren <at> disroot.org>

There was one missing #:use-module (gnu packages gnome), which I added.

Applied.  Thanks Mathieu, and thanks paren for reviewing!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#57731; Package guix-patches. (Sat, 24 Sep 2022 14:02:02 GMT) Full text and rfc822 format available.

Message #40 received at 57731-done <at> debbugs.gnu.org (full text, mbox):

From: Mathieu <matf <at> disr.it>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: "\(" <paren <at> disroot.org>, 57731-done <at> debbugs.gnu.org
Subject: Re: bug#57731: [PATCH 0/1] Add batsignal package
Date: Sat, 24 Sep 2022 16:00:55 +0200
Thanks all, glad to see this merged!

On 2022-09-24 15:56 Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi,
>  
> M <matf <at> disr.it> skribis:
>  
>> * gnu/packages/monitoring.scm (batsignal): New variable.
>>  
>> Co-authored-by: ( <paren <at> disroot.org>
>  
> There was one missing #:use-module (gnu packages gnome), which I
> added.
>  
> Applied.  Thanks Mathieu, and thanks paren for reviewing!
>  
> Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Oct 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.