GNU bug report logs - #60685
[PATCH 1/2] gnu: Add chathistorysync.

Previous Next

Package: guix-patches;

Reported by: "jgart" <jgart <at> dismail.de>

Date: Mon, 9 Jan 2023 01:10:02 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60685 in the body.
You can then email your comments to 60685 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#60685; Package guix-patches. (Mon, 09 Jan 2023 01:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "jgart" <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 09 Jan 2023 01:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "jgart" <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Subject: [PATCH 1/2] gnu: Add chathistorysync.
Date: Mon, 09 Jan 2023 01:09:41 +0000




Information forwarded to guix-patches <at> gnu.org:
bug#60685; Package guix-patches. (Mon, 09 Jan 2023 01:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 60685 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: 60685 <at> debbugs.gnu.org
Cc: "\(" <paren <at> disroot.org>, jgart <jgart <at> dismail.de>
Subject: [PATCH 1/2] gnu: Add go-gopkg-in-irc-v3.
Date: Sun,  8 Jan 2023 19:11:07 -0600
* gnu/packages/irc.scm (go-gopkg-in-irc-v3): New variable.

Co-authored-by: ( <paren <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#60685; Package guix-patches. (Mon, 09 Jan 2023 01:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 60685 <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: 60685 <at> debbugs.gnu.org
Cc: "\(" <paren <at> disroot.org>, jgart <jgart <at> dismail.de>
Subject: [PATCH 2/2] gnu: Add chathistorysync.
Date: Sun,  8 Jan 2023 19:11:08 -0600
* gnu/packages/irc.scm (chathistorysync): New variable.

Co-authored-by: ( <paren <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#60685; Package guix-patches. (Fri, 17 Feb 2023 15:55:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: jgart <jgart <at> dismail.de>
Cc: 60685-done <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#60685] [PATCH 1/2] gnu: Add chathistorysync.
Date: Fri, 17 Feb 2023 15:53:47 +0000
[Message part 1 (text/plain, inline)]
Thanks for the patches, I've adjusted some of the indentation and pushed
these to master as a558998f7dabb2c0672abe3aaac89fb9b652cbb1.

Chris

[signature.asc (application/pgp-signature, inline)]

Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Fri, 17 Feb 2023 15:55:02 GMT) Full text and rfc822 format available.

Notification sent to "jgart" <jgart <at> dismail.de>:
bug acknowledged by developer. (Fri, 17 Feb 2023 15:55:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 Mar 2023 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.