GNU bug report logs - #57734
[PATCH 0/1] Add rot8 package

Previous Next

Package: guix-patches;

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

Date: Sun, 11 Sep 2022 17:37:01 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 57734 in the body.
You can then email your comments to 57734 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#57734; Package guix-patches. (Sun, 11 Sep 2022 17:37: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 17:37: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 rot8 package
Date: Sun, 11 Sep 2022 19:35:40 +0200
rot8 is a daemon that uses accelerometer data to rotate a given display and its
associated inputs (like touchscreen, stylus tablet) on the fly. I tested it on
the GPD Pocket 3 in Guix and Swaywm, seemed to work pretty well.

M (1):
  gnu: Add rot8.

 gnu/packages/rust-apps.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

-- 
2.37.2





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

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

From: M <matf <at> disr.it>
To: 57734 <at> debbugs.gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH] gnu: Add batsignal.
Date: Sun, 11 Sep 2022 19:37:25 +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#57734; Package guix-patches. (Sun, 11 Sep 2022 17:39:02 GMT) Full text and rfc822 format available.

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

From: M <matf <at> disr.it>
To: 57734 <at> debbugs.gnu.org
Cc: M <matf <at> disr.it>
Subject: [PATCH 1/1] gnu: Add rot8.
Date: Sun, 11 Sep 2022 19:37:26 +0200
* gnu/packages/rust-apps.scm (rot8): New variable.
---
 gnu/packages/rust-apps.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index b89eff4eb0..8e7c4a0ed5 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev <at> posteo.org>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared <at> gmail.com>
 ;;; Copyright © 2022 Ricardo Wurmus <rekado <at> elephly.net>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie <at> disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -768,6 +769,31 @@ (define-public ripgrep
 gitignore rules.")
     (license (list license:unlicense license:expat))))
 
+(define-public rot8
+  (package
+    (name "rot8")
+    (version "0.1.4")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "rot8" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1m5kzpqq9pgc19lbnh20iaq654lzlmc1m5fc9f73w2vpwqdiw1qf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-clap" ,rust-clap-2)
+                       ("rust-glob" ,rust-glob-0.3)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/efernau/rot8/")
+    (synopsis "Automatic display rotation using built-in accelerometer")
+    (description "@command{rot8} is a daemon that automates rotating screen and
+associated input devices using the built-in accelerometer; handy for convertible
+touchscreen devices.")
+    (license license:expat)))
+                
 (define-public git-interactive-rebase-tool
   (package
     (name "git-interactive-rebase-tool")
-- 
2.37.2





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

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

From: M <matf <at> disr.it>
To: M <matf <at> disr.it>
Cc: 57734 <at> debbugs.gnu.org
Subject: Re: [PATCH 1/1] gnu: Add rot8.
Date: Sun, 11 Sep 2022 19:58:16 +0200
I just found https://issues.guix.gnu.org/49703 too, I should have looked better. Can those be merged?

Also, I realized that I had another modified file when I sent the patch (gnu/packages/monitoring.scm) and I did not notice that both patches were sent in the same issue until I saw my emails. How could I fix this?




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

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

From: "(" <paren <at> disroot.org>
To: "M" <matf <at> disr.it>
Cc: 57734 <at> debbugs.gnu.org
Subject: Re: [bug#57734] [PATCH 1/1] gnu: Add rot8.
Date: Sun, 11 Sep 2022 19:50:33 +0100
On Sun Sep 11, 2022 at 6:58 PM BST, M wrote:
> I just found https://issues.guix.gnu.org/49703 too, I should have looked better. Can those be merged?

Your one looks better, to be honest. It's fine if there's an abandoned older
version of a package; that's the case with my aerc patchset.

> Also, I realized that I had another modified file when I sent the patch (gnu/packages/monitoring.scm) and I did not notice that both patches were sent in the same issue until I saw my emails. How could I fix this?

There's no way you can fix it, afaik. It doesn't matter, really.

    -- (




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

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

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: M <matf <at> disr.it>
Cc: 57734-done <at> debbugs.gnu.org
Subject: Re: bug#57734: [PATCH 0/1] Add rot8 package
Date: Sat, 24 Sep 2022 16:15:41 +0200
M <matf <at> disr.it> skribis:

> * gnu/packages/rust-apps.scm (rot8): New variable.

Applied, thanks!




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 176 days ago.

Previous Next


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