# monitoring.scm -rw-r--r-- 1.2 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;;; Licensed under GPL-3.0-or-later

(define-module (gnu packages monitoring)
  #:use-module (guix build-system gnu)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages pkg-config))

(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
                "..."))))
    (build-system gnu-build-system)
    (arguments
     (list #:make-flags
           #~(list (string-append "PREFIX=" #$output)
                   (string-append "CC=" #$(cc-for-target)))))
    (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)))