all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#54201] [PATCH] Add wego
@ 2022-03-01  0:29 Nicolas Goaziou
  2022-03-18 13:59 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2022-03-01  0:29 UTC (permalink / raw)
  To: 54201

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

Hello,

The following two patches add wego. I create a new "weather.scm" file
since I didn't know where to put it.

Regards,
-- 
Nicolas Goaziou

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add go-github-com-schachmat-ingo --]
[-- Type: text/x-diff, Size: 1837 bytes --]

From b8ff68982388247600aa8f4771e6ccd5794acf0e Mon Sep 17 00:00:00 2001
Message-Id: <b8ff68982388247600aa8f4771e6ccd5794acf0e.1646094084.git.mail@nicolasgoaziou.fr>
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Tue, 1 Mar 2022 00:58:14 +0100
Subject: [[PATCH] 1/2] gnu: Add go-github-com-schachmat-ingo.

* gnu/packages/golang.scm (go-github-com-schachmat-ingo): New variable.
---
 gnu/packages/golang.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a093728805..0914b3cf23 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1158,6 +1158,28 @@ (define-public go-github-com-shadowsocks-go-shadowsocks2
 proxy protocol.")
     (license license:asl2.0)))
 
+(define-public go-github-com-schachmat-ingo
+  (package
+    (name "go-github-com-schachmat-ingo")
+    (version "0.0.0-20170403011506-a4bdc0729a3f")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/schachmat/ingo")
+               (commit (go-version->git-ref version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "1gw0kddy7jh3467imsqni86cf9yq7k6vpfc0ywkbwj0zsjsdgd49"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "github.com/schachmat/ingo"))
+    (home-page "https://github.com/schachmat/ingo")
+    (synopsis "Go library to persist flags in a INI-like configuration file")
+    (description
+      "Ingo is a Go library helping you to persist flags in a INI-like
+configuration file.")
+    (license license:isc)))
+
 (define-public go-github-com-riobard-go-bloom
   (let ((commit "cdc8013cb5b3eb0efebec85f0e904efccac42df9")
         (revision "0"))

base-commit: 508960f95a3af0750a59005e2beb8ec5edf7fd5c
-- 
2.34.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: Add wego --]
[-- Type: text/x-diff, Size: 2499 bytes --]

From 84b5ea4501014800ec43b6335af6b554716f8ce0 Mon Sep 17 00:00:00 2001
Message-Id: <84b5ea4501014800ec43b6335af6b554716f8ce0.1646094084.git.mail@nicolasgoaziou.fr>
In-Reply-To: <b8ff68982388247600aa8f4771e6ccd5794acf0e.1646094084.git.mail@nicolasgoaziou.fr>
References: <b8ff68982388247600aa8f4771e6ccd5794acf0e.1646094084.git.mail@nicolasgoaziou.fr>
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Tue, 1 Mar 2022 01:14:04 +0100
Subject: [[PATCH] 2/2] gnu: Add wego.

* gnu/packages/weather.scm: New file.
* gnu/local.mk: Register new file.
---
 gnu/local.mk             |  1 +
 gnu/packages/weather.scm | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 gnu/packages/weather.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index bc214b3443..4915ccbe2b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -603,6 +603,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/vulkan.scm			\
   %D%/packages/w3m.scm				\
   %D%/packages/wdiff.scm			\
+  %D%/packages/weather.scm			\
   %D%/packages/web.scm				\
   %D%/packages/web-browsers.scm			\
   %D%/packages/webkit.scm			\
diff --git a/gnu/packages/weather.scm b/gnu/packages/weather.scm
new file mode 100644
index 0000000000..bd83c1b660
--- /dev/null
+++ b/gnu/packages/weather.scm
@@ -0,0 +1,34 @@
+(define-module (gnu packages weather)
+  #:use-module (guix build-system go)
+  #:use-module (guix git-download)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages golang))
+
+(define-public wego
+  (package
+    (name "wego")
+    (version "2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/schachmat/wego")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0bji9fywa0kg29zj1vrwq7l5f18hh0lcz6rl6sppi5id0qbjpiwl"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "github.com/schachmat/wego"))
+    (propagated-inputs
+     (list go-golang-org-x-sys
+           go-github-com-rivo-uniseg
+           go-github-com-mattn-go-isatty
+           go-github-com-schachmat-ingo
+           go-github-com-mattn-go-runewidth
+           go-github-com-mattn-go-colorable))
+    (home-page "https://github.com/schachmat/wego")
+    (synopsis "Weather client for the terminal")
+    (description "@strong{wego} is a weather client for the terminal.")
+    (license isc)))
-- 
2.34.0


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

* [bug#54201] [PATCH] Add wego
  2022-03-01  0:29 [bug#54201] [PATCH] Add wego Nicolas Goaziou
@ 2022-03-18 13:59 ` Ludovic Courtès
  2022-03-18 23:59   ` bug#54201: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2022-03-18 13:59 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 54201

Hi,

Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

>>From 84b5ea4501014800ec43b6335af6b554716f8ce0 Mon Sep 17 00:00:00 2001
> Message-Id: <84b5ea4501014800ec43b6335af6b554716f8ce0.1646094084.git.mail@nicolasgoaziou.fr>
> In-Reply-To: <b8ff68982388247600aa8f4771e6ccd5794acf0e.1646094084.git.mail@nicolasgoaziou.fr>
> References: <b8ff68982388247600aa8f4771e6ccd5794acf0e.1646094084.git.mail@nicolasgoaziou.fr>
> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Tue, 1 Mar 2022 01:14:04 +0100
> Subject: [[PATCH] 2/2] gnu: Add wego.
>
> * gnu/packages/weather.scm: New file.
> * gnu/local.mk: Register new file.

[...]

> +++ b/gnu/packages/weather.scm
> @@ -0,0 +1,34 @@
> +(define-module (gnu packages weather)

Please add a license header.


[...]

> +    (home-page "https://github.com/schachmat/wego")
> +    (synopsis "Weather client for the terminal")
> +    (description "@strong{wego} is a weather client for the terminal.")

Could you expound a little bit, mentioning key features, etc.?

You can prolly remove @strong.

> +    (license isc)))

Perhaps #:prefix license: ?

Otherwise LGTM, thanks!

Ludo’.




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

* bug#54201: [PATCH] Add wego
  2022-03-18 13:59 ` Ludovic Courtès
@ 2022-03-18 23:59   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2022-03-18 23:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 54201-done

Hello,

Ludovic Courtès <ludo@gnu.org> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

>> +++ b/gnu/packages/weather.scm
>> @@ -0,0 +1,34 @@
>> +(define-module (gnu packages weather)
>
> Please add a license header.

Done.

>> +    (description "@strong{wego} is a weather client for the terminal.")
>
> Could you expound a little bit, mentioning key features, etc.?
>
> You can prolly remove @strong.

Done.

>> +    (license isc)))
>
> Perhaps #:prefix license: ?

I thought we needed to use the prefix only when there was a conflict in
the module.

Anyhow, done.

> Otherwise LGTM, thanks!

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2022-03-19  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01  0:29 [bug#54201] [PATCH] Add wego Nicolas Goaziou
2022-03-18 13:59 ` Ludovic Courtès
2022-03-18 23:59   ` bug#54201: " Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.