unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56004] [PATCH] gnu: Add snafu.
@ 2022-06-16  2:19 jgart via Guix-patches via
  2022-07-07 20:52 ` Maxim Cournoyer
  2022-08-27 15:53 ` [bug#56004] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-06-16  2:19 UTC (permalink / raw)
  To: 56004; +Cc: jgart

* gnu/packages/suckless.scm (snafu): New variable.
---
 gnu/packages/suckless.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index 5aa37657b9..e05ae022df 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -12,6 +12,7 @@
 ;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
 ;;; Copyright © 2021 Nikolay Korotkiy <sikmir@disroot.org>
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -32,6 +33,7 @@ (define-module (gnu packages suckless)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages crates-io)
   #:use-module (gnu packages cups)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
@@ -46,6 +48,7 @@ (define-module (gnu packages suckless)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xorg)
+  #:use-module (guix build-system cargo)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
@@ -189,6 +192,35 @@ (define-public slstatus
 @end itemize")
       (license license:isc))))
 
+(define-public snafu
+  (let ((commit "da0a5eea31e35aef75c698d1c01f559858c17b0d")
+        (revision "0"))
+    (package
+      (name "snafu")
+      (version commit)
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/jsbmg/snafu")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1wi857rdqmg4731wzgry06ndfxk8c40yyrf0whk1wlq7p0n6bd3b"))))
+          (arguments
+            `(#:cargo-inputs
+              (("rust-chrono" ,rust-chrono-0.4))
+              #:tests? #f)) ; There are no tests.
+      (build-system cargo-build-system)
+      (home-page "https://github.com/jsbmg/snafu")
+      (synopsis "Status text for dwm window manager")
+      (description
+"@code{snafu} provides status text for dwm's builtin bar on Linux.  It
+shows battery status, battery capacity, current WIFI connection, and
+the time in a nice format.")
+      (license license:isc))))
+
 (define-public blind
   (package
     (name "blind")
-- 
2.36.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#56004] [PATCH] gnu: Add snafu.
  2022-06-16  2:19 [bug#56004] [PATCH] gnu: Add snafu jgart via Guix-patches via
@ 2022-07-07 20:52 ` Maxim Cournoyer
  2022-08-27 15:53 ` [bug#56004] [PATCH v2] " jgart via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2022-07-07 20:52 UTC (permalink / raw)
  To: jgart; +Cc: 56004

Hello,

jgart <jgart@dismail.de> writes:

> * gnu/packages/suckless.scm (snafu): New variable.
> ---
>  gnu/packages/suckless.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>
> diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
> index 5aa37657b9..e05ae022df 100644
> --- a/gnu/packages/suckless.scm
> +++ b/gnu/packages/suckless.scm
> @@ -12,6 +12,7 @@
>  ;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
>  ;;; Copyright © 2021 Nikolay Korotkiy <sikmir@disroot.org>
>  ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
> +;;; Copyright © 2022 jgart <jgart@dismail.de>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -32,6 +33,7 @@ (define-module (gnu packages suckless)
>    #:use-module (gnu packages)
>    #:use-module (gnu packages base)
>    #:use-module (gnu packages compression)
> +  #:use-module (gnu packages crates-io)
>    #:use-module (gnu packages cups)
>    #:use-module (gnu packages fonts)
>    #:use-module (gnu packages fontutils)
> @@ -46,6 +48,7 @@ (define-module (gnu packages suckless)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages webkit)
>    #:use-module (gnu packages xorg)
> +  #:use-module (guix build-system cargo)
>    #:use-module (guix build-system glib-or-gtk)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix download)
> @@ -189,6 +192,35 @@ (define-public slstatus
>  @end itemize")
>        (license license:isc))))
>  
> +(define-public snafu
> +  (let ((commit "da0a5eea31e35aef75c698d1c01f559858c17b0d")
> +        (revision "0"))
> +    (package
> +      (name "snafu")
> +      (version commit)

You'd need write a proper monotonically increasing version via
'git-version', as hinted in info '(guix) Version Numbers'.

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri
> +          (git-reference
> +           (url "https://github.com/jsbmg/snafu")
> +           (commit commit)))
> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32 "1wi857rdqmg4731wzgry06ndfxk8c40yyrf0whk1wlq7p0n6bd3b"))))
> +          (arguments
> +            `(#:cargo-inputs
> +              (("rust-chrono" ,rust-chrono-0.4))
> +              #:tests? #f)) ; There are no tests.
> +      (build-system cargo-build-system)
> +      (home-page "https://github.com/jsbmg/snafu")
> +      (synopsis "Status text for dwm window manager")

Fully capitalize DWM.

> +      (description
> +"@code{snafu} provides status text for dwm's builtin bar on Linux.  It

Remove "on Linux", extraneous information on GNU Guix.

> +shows battery status, battery capacity, current WIFI connection, and

The proper "acronym" capitalization is WiFi.

Could you send a revised patch?

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#56004] [PATCH v2] gnu: Add snafu.
  2022-06-16  2:19 [bug#56004] [PATCH] gnu: Add snafu jgart via Guix-patches via
  2022-07-07 20:52 ` Maxim Cournoyer
@ 2022-08-27 15:53 ` jgart via Guix-patches via
  2022-09-01  8:18   ` bug#56004: " Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-08-27 15:53 UTC (permalink / raw)
  To: 56004; +Cc: jgart, Maxim Cournoyer

* gnu/packages/suckless.scm (snafu): New variable.

Here's v2 with your suggestions added. Thanks!
---
 gnu/packages/suckless.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index dbc3537ac6..d971de10f0 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -33,6 +33,7 @@
 (define-module (gnu packages suckless)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
+  #:use-module (gnu packages crates-io)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cups)
   #:use-module (gnu packages fonts)
@@ -49,6 +50,7 @@ (define-module (gnu packages suckless)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xorg)
+  #:use-module (guix build-system cargo)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
@@ -1182,6 +1184,35 @@ (define-public farbfeld
       (home-page "https://git.suckless.org/farbfeld/")
       (license license:isc))))
 
+(define-public snafu
+  (let ((commit "e436fb4f61ca93a4ec85122506b2c2d4fec30eb6")
+        (revision "0"))
+    (package
+      (name "snafu")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/jsbmg/snafu")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1c6ahxw0qz0703my28k2z0kgi0am5bp5d02l4rgyphgvjk1jfv8h"))))
+          (arguments
+            `(#:cargo-inputs
+              (("rust-chrono" ,rust-chrono-0.4))
+              #:tests? #f)) ; There are no tests.
+      (build-system cargo-build-system)
+      (home-page "https://github.com/jsbmg/snafu")
+      (synopsis "Status text for DWM window manager")
+      (description
+"@code{snafu} provides status text for DWM's builtin bar.  It
+shows battery status, battery capacity, current WiFi connection, and
+the time in a nice format.")
+      (license license:isc))))
+
 (define-public svkbd
   (package
     (name "svkbd")
-- 
2.37.2





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#56004: [PATCH v2] gnu: Add snafu.
  2022-08-27 15:53 ` [bug#56004] [PATCH v2] " jgart via Guix-patches via
@ 2022-09-01  8:18   ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2022-09-01  8:18 UTC (permalink / raw)
  To: jgart; +Cc: 56004-done, Maxim Cournoyer

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

Thanks. Patch pushed!

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-01  9:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16  2:19 [bug#56004] [PATCH] gnu: Add snafu jgart via Guix-patches via
2022-07-07 20:52 ` Maxim Cournoyer
2022-08-27 15:53 ` [bug#56004] [PATCH v2] " jgart via Guix-patches via
2022-09-01  8:18   ` bug#56004: " Efraim Flashner

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).