all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 60685@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>, jgart <jgart@dismail.de>
Subject: [bug#60685] [PATCH 2/2] gnu: Add chathistorysync.
Date: Sun,  8 Jan 2023 19:11:08 -0600	[thread overview]
Message-ID: <20230109011108.22431-2-jgart@dismail.de> (raw)
In-Reply-To: <20230109011108.22431-1-jgart@dismail.de>

* 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





  reply	other threads:[~2023-01-09  1:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` jgart via Guix-patches via [this message]
2023-02-17 15:53 ` [bug#60685] [PATCH 1/2] gnu: Add chathistorysync Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230109011108.22431-2-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=60685@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.