unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#60685] [PATCH 1/2] gnu: Add chathistorysync.
@ 2023-01-09  1:09 jgart via Guix-patches via
  2023-01-09  1:11 ` [bug#60685] [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3 jgart via Guix-patches via
  2023-02-17 15:53 ` [bug#60685] [PATCH 1/2] " Christopher Baines
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2023-01-09  1:09 UTC (permalink / raw)
  To: 60685






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

* [bug#60685] [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3.
  2023-01-09  1:09 [bug#60685] [PATCH 1/2] gnu: Add chathistorysync jgart via Guix-patches via
@ 2023-01-09  1:11 ` jgart via Guix-patches via
  2023-01-09  1:11   ` [bug#60685] [PATCH 2/2] gnu: Add chathistorysync jgart via Guix-patches via
  2023-02-17 15:53 ` [bug#60685] [PATCH 1/2] " Christopher Baines
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2023-01-09  1:11 UTC (permalink / raw)
  To: 60685; +Cc: (, jgart

* gnu/packages/irc.scm (go-gopkg-in-irc-v3): New variable.

Co-authored-by: ( <paren@disroot.org>
---
 gnu/packages/irc.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index c6154fd9cf..9740d91fa7 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -39,6 +39,7 @@ (define-module (gnu packages irc)
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system go)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module (guix build-system qt)
@@ -62,10 +63,12 @@ (define-module (gnu packages irc)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages lxqt)
+  #:use-module (gnu packages man)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages openldap)
   #:use-module (gnu packages kde)
@@ -587,6 +590,33 @@ (define-public epic5
                    ;; distribute binaries.
                    (license:non-copyleft "http://epicsol.org/copyright")))))
 
+(define-public go-gopkg-in-irc-v3
+  (package
+    (name "go-gopkg-in-irc-v3")
+    (version "3.1.4")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://gopkg.in/irc.v3")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "0f2vv947yf9ygy8ylwqkd9yshybfdsbsp9pffjyvm7l7rnq5da60"))))
+    (build-system go-build-system)
+    (arguments
+      '(;; https://paste.sr.ht/~whereiseveryone/784d068887a65c1b869caa7d7c2077d28a2b2187
+        #:tests? #f
+        #:import-path "gopkg.in/irc.v3" #:unpack-path "gopkg.in/irc.v3"))
+    (propagated-inputs
+      `(("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2)
+        ("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+    (home-page "https://gopkg.in/irc.v3")
+    (synopsis "Low-level IRC library for Go")
+    (description "Package irc provides a simple IRC library meant as a building
+block for other projects.")
+    (license license:expat)))
+
 (define-public litterbox
   (package
     (name "litterbox")
-- 
2.38.1





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

* [bug#60685] [PATCH 2/2] gnu: Add chathistorysync.
  2023-01-09  1:11 ` [bug#60685] [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3 jgart via Guix-patches via
@ 2023-01-09  1:11   ` jgart via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2023-01-09  1:11 UTC (permalink / raw)
  To: 60685; +Cc: (, jgart

* gnu/packages/irc.scm (chathistorysync): New variable.

Co-authored-by: ( <paren@disroot.org>
---
 gnu/packages/irc.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 9740d91fa7..381cd11034 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -617,6 +617,51 @@ (define-public go-gopkg-in-irc-v3
 block for other projects.")
     (license license:expat)))
 
+(define-public chathistorysync
+  (package
+    (name "chathistorysync")
+    (version "0.2.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://git.sr.ht/~emersion/chathistorysync")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "03dxr178wnicggx0k95wvyzgyk4s4g0adbi2z0md517a5qd1lh23"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "git.sr.ht/~emersion/chathistorysync"
+           #:install-source? #f ; chathistorysync is an end-user application.
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'build 'doc
+                 (lambda _
+                   (with-directory-excursion
+                     "src/git.sr.ht/~emersion/chathistorysync"
+                     (invoke "sh" "-c"
+                             "scdoc <chathistorysync.1.scd >chathistorysync.1"))))
+               (add-after 'install 'install-doc
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out")))
+                     (with-directory-excursion
+                       "src/git.sr.ht/~emersion/chathistorysync"
+                       (install-file
+                         "chathistorysync.1"
+                         (string-append out "/share/man/man1")))))))))
+    (inputs
+      (list go-golang-org-x-sys
+            go-golang-org-x-term
+            go-golang-org-x-crypto
+            go-gopkg-in-irc-v3))
+    (native-inputs (list scdoc))
+    (home-page "https://git.sr.ht/~emersion/chathistorysync")
+    (synopsis "Synchronization tool for IRC chat history")
+    (description
+      "This package provides a synchronization tool for IRC chat history.")
+    (license license:agpl3)))
+
 (define-public litterbox
   (package
     (name "litterbox")
-- 
2.38.1





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

* [bug#60685] [PATCH 1/2] gnu: Add chathistorysync.
  2023-01-09  1:09 [bug#60685] [PATCH 1/2] gnu: Add chathistorysync jgart via Guix-patches via
  2023-01-09  1:11 ` [bug#60685] [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3 jgart via Guix-patches via
@ 2023-02-17 15:53 ` Christopher Baines
  1 sibling, 0 replies; 4+ messages in thread
From: Christopher Baines @ 2023-02-17 15:53 UTC (permalink / raw)
  To: jgart; +Cc: 60685-done, 60685

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


Thanks for the patches, I've adjusted some of the indentation and pushed
these to master as a558998f7dabb2c0672abe3aaac89fb9b652cbb1.

Chris


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

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

end of thread, other threads:[~2023-02-17 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09  1:09 [bug#60685] [PATCH 1/2] gnu: Add chathistorysync jgart via Guix-patches via
2023-01-09  1:11 ` [bug#60685] [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3 jgart via Guix-patches via
2023-01-09  1:11   ` [bug#60685] [PATCH 2/2] gnu: Add chathistorysync jgart via Guix-patches via
2023-02-17 15:53 ` [bug#60685] [PATCH 1/2] " Christopher Baines

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