unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58257] [PATCH] gnu: Add go-webring.
@ 2022-10-02 19:55 jgart via Guix-patches via
  2022-10-04 18:12 ` ( via Guix-patches via
  2022-10-04 22:00 ` [bug#58257] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 2 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2022-10-02 19:55 UTC (permalink / raw)
  To: 58257; +Cc: jgart

* gnu/packages/web.scm (go-webring): New variable.
---
 gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 3262dbbb10..bc2b1a1950 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -58,6 +58,7 @@
 ;;; Copyright © 2022 cage <cage-dev@twistfold.it>
 ;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
 ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8184,6 +8185,32 @@ (define-public quark
       ;; to account for "vendor names".
       (properties '((lint-hidden-cve . ("CVE-2019-15520")))))))
 
+(define-public go-webring
+  (let ((commit "6786a27b0c57df75323217453369c83a4d9f4dea")
+        (revision "0"))
+    (package
+      (name "go-webring")
+      (version (git-version "20220426" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.sr.ht/~amolith/go-webring")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1xra0mapdmda8n0z6zsgcqppdzvxc47p0fahsdyig5qmpk89ar8l"))))
+      (build-system go-build-system)
+      (arguments
+       (list #:import-path "git.sr.ht/~amolith/go-webring"))
+      (propagated-inputs (list go-github-com-spf13-pflag))
+      (home-page "https://git.sr.ht/~amolith/go-webring")
+      (synopsis "Simple webring implementation")
+      (description
+"@code{go--webring} provides a simple webring implementation as used by
+the Fediring.")
+      (license (list license:cc0 license:bsd-2)))))
+
 (define-public archivebox
   (package
     (name "archivebox")
-- 
2.37.3





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

* [bug#58257] [PATCH] gnu: Add go-webring.
  2022-10-02 19:55 [bug#58257] [PATCH] gnu: Add go-webring jgart via Guix-patches via
@ 2022-10-04 18:12 ` ( via Guix-patches via
  2022-10-04 22:00 ` [bug#58257] [PATCH v2] " jgart via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: ( via Guix-patches via @ 2022-10-04 18:12 UTC (permalink / raw)
  To: jgart, 58257

Hey jgart,

On Sun Oct 2, 2022 at 8:55 PM BST, jgart via Guix-patches via wrote:
> +      (build-system go-build-system)
> +      (arguments
> +       (list #:import-path "git.sr.ht/~amolith/go-webring"))

Since this is a program, not a library, shouldn't you use
``#:install-source? #f''?

> +      (propagated-inputs (list go-github-com-spf13-pflag))

You don't need to propagate the inputs of a program.

> +      (synopsis "Simple webring implementation")

How about something like,

  Webring generator for blogs

> +      (description
> +"@code{go--webring} provides a simple webring implementation as used by
> +the Fediring.")

Maybe,

> +      (description
> +       "This package provides a program for generating \"webring\" in
> +Gemtext or HTML format for blogs from a template.")

    -- (




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

* [bug#58257] [PATCH v2] gnu: Add go-webring.
  2022-10-02 19:55 [bug#58257] [PATCH] gnu: Add go-webring jgart via Guix-patches via
  2022-10-04 18:12 ` ( via Guix-patches via
@ 2022-10-04 22:00 ` jgart via Guix-patches via
  2022-10-09 20:25   ` bug#58257: [PATCH] " Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: jgart via Guix-patches via @ 2022-10-04 22:00 UTC (permalink / raw)
  To: 58257; +Cc: (, jgart

* gnu/packages/web.scm (go-webring): New variable.

Hi paren,

Thanks for the review. I changed everything but the blog stuff because
go-webring is not necessarily used in the context of a blog. A webring
can stand on it's own without being associated with a blog. A webring
can associate websites that are not blogs or Guix channels ;()

Here's v2

all best,

jgart
---
 gnu/packages/web.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 3262dbbb10..967d4328b5 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -58,6 +58,7 @@
 ;;; Copyright © 2022 cage <cage-dev@twistfold.it>
 ;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
 ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8184,6 +8185,33 @@ (define-public quark
       ;; to account for "vendor names".
       (properties '((lint-hidden-cve . ("CVE-2019-15520")))))))
 
+(define-public go-webring
+  (let ((commit "6786a27b0c57df75323217453369c83a4d9f4dea")
+        (revision "0"))
+    (package
+      (name "go-webring")
+      (version (git-version "20220426" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.sr.ht/~amolith/go-webring")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1xra0mapdmda8n0z6zsgcqppdzvxc47p0fahsdyig5qmpk89ar8l"))))
+      (build-system go-build-system)
+      (arguments
+       (list #:import-path "git.sr.ht/~amolith/go-webring"
+             #:install-source? #f))
+      (inputs (list go-github-com-spf13-pflag))
+      (home-page "https://git.sr.ht/~amolith/go-webring")
+      (synopsis "Simple webring implementation")
+      (description
+"@code{go--webring} provides a simple webring implementation as used by
+the Fediring.")
+      (license (list license:cc0 license:bsd-2)))))
+
 (define-public archivebox
   (package
     (name "archivebox")
-- 
2.37.3





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

* bug#58257: [PATCH] gnu: Add go-webring.
  2022-10-04 22:00 ` [bug#58257] [PATCH v2] " jgart via Guix-patches via
@ 2022-10-09 20:25   ` Ludovic Courtès
  2022-10-09 20:29     ` [bug#58257] " jgart via Guix-patches via
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-10-09 20:25 UTC (permalink / raw)
  To: jgart; +Cc: 58257-done, (

Hi,

jgart <jgart@dismail.de> skribis:

> * gnu/packages/web.scm (go-webring): New variable.

Applied, thanks!

Ludo’.




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

* [bug#58257] [PATCH] gnu: Add go-webring.
  2022-10-09 20:25   ` bug#58257: [PATCH] " Ludovic Courtès
@ 2022-10-09 20:29     ` jgart via Guix-patches via
  0 siblings, 0 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2022-10-09 20:29 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 58257-done, (

On Sun, 09 Oct 2022 22:25:03 +0200 Ludovic Courtès <ludo@gnu.org> wrote:
> Applied, thanks!

THNX! <3





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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-02 19:55 [bug#58257] [PATCH] gnu: Add go-webring jgart via Guix-patches via
2022-10-04 18:12 ` ( via Guix-patches via
2022-10-04 22:00 ` [bug#58257] [PATCH v2] " jgart via Guix-patches via
2022-10-09 20:25   ` bug#58257: [PATCH] " Ludovic Courtès
2022-10-09 20:29     ` [bug#58257] " jgart via Guix-patches via

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