unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: guix-patches--- via <guix-patches@gnu.org>
To: 64222@debbugs.gnu.org
Cc: "Nguyễn Gia Phong" <mcsinyx@disroot.org>
Subject: [bug#64222] [PATCH 4/4] gnu: Add senpai.
Date: Thu, 22 Jun 2023 19:54:27 +0900	[thread overview]
Message-ID: <77d4e608cd53072a45f751adddf6eef0ab71d5d0.1687431267.git.mcsinyx@disroot.org> (raw)
In-Reply-To: <9e1afd5da13e7b74161410bd910733604754c8a8.1687431267.git.mcsinyx@disroot.org>

* gnu/packaging/messaging.scm (senpai): New variable.

Signed-off-by: Nguyễn Gia Phong <mcsinyx@disroot.org>
---
 gnu/packages/messaging.scm | 52 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 3629d9a6d544..4fa04e5a1842 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3496,4 +3496,56 @@ (define-public pn
 a text snippet), using @code{libphonenumber}.")
     (license license:asl2.0)))
 
+(define-public senpai
+  (package
+    (name "senpai")
+    (version "0.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://git.sr.ht/~taiite/senpai")
+         (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qw955i5f3jr42h4afr23v7wq616bcsyq68if75qdw8j1yibnpmb"))))
+    (build-system go-build-system)
+    (arguments
+      (list #:import-path "git.sr.ht/~taiite/senpai/cmd/senpai"
+            #:unpack-path "git.sr.ht/~taiite/senpai"
+            #:install-source? #f
+            #:phases
+            #~(modify-phases %standard-phases
+                (add-after 'build 'build-doc
+                  (lambda* (#:key unpack-path #:allow-other-keys)
+                    (invoke "make" "doc/senpai.1" "doc/senpai.5"
+                            "-C" (string-append "src/" unpack-path))))
+                (add-after 'install 'install-doc
+                  (lambda* (#:key unpack-path #:allow-other-keys)
+                    (let ((man1 (string-append #$output "/share/man/man1"))
+                          (man5 (string-append #$output "/share/man/man5")))
+                      (mkdir-p man1)
+                      (mkdir-p man5)
+                      (install-file
+                        (string-append "src/" unpack-path "/doc/senpai.1")
+                        man1)
+                      (install-file
+                        (string-append "src/" unpack-path "/doc/senpai.5")
+                        man5)))))))
+    (native-inputs (list go-git-sr-ht-emersion-go-scfg
+                         go-github-com-delthas-go-libnp
+                         go-github-com-delthas-go-localeinfo
+                         go-github-com-gdamore-tcell-v2
+                         go-github-com-mattn-go-runewidth
+                         go-golang-org-x-net
+                         go-golang-org-x-term
+                         go-golang-org-x-time
+                         go-mvdan-cc-xurls
+                         scdoc))
+    (home-page "https://sr.ht/~taiite/senpai")
+    (synopsis "Modern terminal IRC client")
+    (description "@code{senpai} is an IRC client that works best with bouncers")
+    (license license:isc)))
+
 ;;; messaging.scm ends here
-- 
2.40.1





  parent reply	other threads:[~2023-06-22 10:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-22 10:52 [bug#64222] [PATCH 0/4] Add senpai IRC client guix-patches--- via
2023-06-22 10:54 ` [bug#64222] [PATCH 1/4] gnu: go-github-com-godbus-dbus: Update to 5.1.0 guix-patches--- via
2023-06-22 10:54   ` [bug#64222] [PATCH 2/4] gnu: Add go-github-com-delthas-go-libnp guix-patches--- via
2023-06-22 10:54   ` [bug#64222] [PATCH 3/4] gnu: Add go-github-com-delthas-go-localeinfo guix-patches--- via
2023-06-22 10:54   ` guix-patches--- via [this message]
2023-10-12 15:12 ` bug#64222: [PATCH 0/4] Add senpai IRC client Ludovic Courtès
2023-10-12 16:16   ` [bug#64222] " guix-patches--- via

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=77d4e608cd53072a45f751adddf6eef0ab71d5d0.1687431267.git.mcsinyx@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=64222@debbugs.gnu.org \
    --cc=mcsinyx@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 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).