unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: 51193@debbugs.gnu.org
Subject: [bug#51193] [PATCH] gnu: Update i3status-rust.
Date: Mon, 08 Nov 2021 17:34:14 +0000	[thread overview]
Message-ID: <Qg7Xh9MHcgV-KB8IjAuXMBiaurI57CCZOpRU0a9ZviCieM7pukcmh-1Vgz3nMiuJU8vXYjtaLdH5ANpvRjouklanKWqkrnTr4nsiHkDaxw8=@protonmail.com> (raw)
In-Reply-To: <z5j7TKb8VrWU9lXZ7vQfuQqPDC8KK9CJECAEKOu76TomEMrzKlXqeGIxxazbhfty5UwM3IPIaIspta3OggHKqYX38hG64suNvbhyehsKGYI=@protonmail.com>

Hi Efraim,

Thanks for upstreaming.

Unfortunately I discovered some missing inputs when using full config file, not just dummy (only time and disks).

Also checked the source code and the Rust code invokes commands. This looks like it would need also wrap-program, right?

Here's a list:
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/taskwarrior.rs#L145
https://github.com/greshake/i3status-rust/blob/629f9d90961c1a9815eb0f0ee60773e39dbca7a2/src/blocks/nvidia_gpu.rs#L190
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/taskwarrior.rs#L145
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/xrandr.rs#L104
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/speedtest.rs#L53
https://github.com/greshake/i3status-rust/blob/974212179519feeaadd3fd7a9672d7475694e306/src/blocks/net.rs#L85
https://github.com/greshake/i3status-rust/blob/4d3e12d1adc1dfaa43a54cc3448b13fc9de93a89/src/blocks/dnf.rs#L112
https://github.com/greshake/i3status-rust/blob/27f8bf5519dbb50ac2311e1379f005d48e5005df/src/blocks/temperature.rs#L178
https://github.com/greshake/i3status-rust/blob/5a5f9218d82a4e884975d53a49b34541f108451e/src/blocks/kdeconnect.rs#L144
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/keyboard_layout.rs#L63
https://github.com/greshake/i3status-rust/blob/febdcd51a6eaaa6070667b4ec1db3a6e01ed909b/src/blocks/sound.rs#L106
https://github.com/greshake/i3status-rust/blob/38dfb061dcd37655c273110fd70f6b4e3ffb7a01/src/blocks/ibus.rs#L297
https://github.com/greshake/i3status-rust/blob/master/src/blocks/sound.rs#L106

* gnu/packages/rust-apps (i3status-rust)[inputs]: Add alsa-utils and setxkbmap.

----8<----------cut here--------->8---
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index be60f3f376..2f05b313d6 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -55,7 +55,8 @@ (define-module (gnu packages rust-apps)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages rust)
   #:use-module (gnu packages tls)
-  #:use-module (gnu packages version-control))
+  #:use-module (gnu packages version-control)
+  #:use-module (gnu packages xorg))

 (define-public agate
   (package
@@ -450,23 +451,25 @@ (define-public i3status-rust
     (name "i3status-rust")
     (version "0.20.1")
     (source
-      (origin
-        (method git-fetch)
-        (uri (git-reference
-              (url "https://github.com/greshake/i3status-rust")
-              (commit (string-append "v" version))))
-        (file-name (git-file-name name version))
-        (patches (search-patches "i3status-rust-enable-unstable-features.patch"))
-        (sha256
-         (base32 "00gzm3g297s9bfp13vnb623p7dfac3g6cdhz2b3lc6l0kmnnqs1s"))))
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/greshake/i3status-rust")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (patches (search-patches "i3status-rust-enable-unstable-features.patch"))
+       (sha256
+        (base32 "00gzm3g297s9bfp13vnb623p7dfac3g6cdhz2b3lc6l0kmnnqs1s"))))
     (build-system cargo-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
      `(("curl" ,curl)
+       ("alsa-utils" ,alsa-utils)
        ("dbus" ,dbus)
        ("pulseaudio" ,pulseaudio)
        ("openssl" ,openssl)
+       ("setxkbmap" ,setxkbmap)
        ("zlib" ,zlib)))
     (arguments
      `(#:features '("pulseaudio" "libpulse-binding")
--
2.33.1




      parent reply	other threads:[~2021-11-08 17:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 22:07 [bug#51193] Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 phodina via Guix-patches via
2021-10-13 22:10 ` [bug#51193] Subject: [PATCH 2/4] gnu: Add rust-libpulse-sys-1 phodina via Guix-patches via
2021-10-13 22:11 ` [bug#51193] Subject: [PATCH 3/4] gnu: Add rust-libpulse-binding-2 phodina via Guix-patches via
2021-10-13 22:11 ` [bug#51193] Subject: [PATCH 4/4] gnu: Add i3status-rust phodina via Guix-patches via
2021-11-08  8:55 ` bug#51193: Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 Efraim Flashner
2021-11-08 17:34 ` phodina via Guix-patches via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Qg7Xh9MHcgV-KB8IjAuXMBiaurI57CCZOpRU0a9ZviCieM7pukcmh-1Vgz3nMiuJU8vXYjtaLdH5ANpvRjouklanKWqkrnTr4nsiHkDaxw8=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=51193@debbugs.gnu.org \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).