From patchwork Wed Aug 3 21:18:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 41216 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 47D2627BBEA; Wed, 3 Aug 2022 22:20:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B083427BBE9 for ; Wed, 3 Aug 2022 22:20:06 +0100 (BST) Received: from localhost ([::1]:37666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJLmf-0007An-63 for patchwork@mira.cbaines.net; Wed, 03 Aug 2022 17:20:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJLlg-0006J4-FD for guix-patches@gnu.org; Wed, 03 Aug 2022 17:19:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJLlg-0004na-6O for guix-patches@gnu.org; Wed, 03 Aug 2022 17:19:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJLlg-0006Bz-2B for guix-patches@gnu.org; Wed, 03 Aug 2022 17:19:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56961] [PATCH 6/6] gnu: packages: Add senpai. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Aug 2022 21:19:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56961 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56961@debbugs.gnu.org Cc: "\(" Received: via spool by 56961-submit@debbugs.gnu.org id=B56961.165956152623743 (code B ref 56961); Wed, 03 Aug 2022 21:19:04 +0000 Received: (at 56961) by debbugs.gnu.org; 3 Aug 2022 21:18:46 +0000 Received: from localhost ([127.0.0.1]:50195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJLlO-0006Ar-9E for submit@debbugs.gnu.org; Wed, 03 Aug 2022 17:18:46 -0400 Received: from knopi.disroot.org ([178.21.23.139]:58170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJLlG-0006A7-3M for 56961@debbugs.gnu.org; Wed, 03 Aug 2022 17:18:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7884E40E7F; Wed, 3 Aug 2022 23:18:37 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RVH-MZag0B6p; Wed, 3 Aug 2022 23:18:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659561511; bh=f08xfLp6sEkNoC5v1MmKZqVC24jYVw/yA872b/8Nqrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PvVp6Q8rqD7LRTM04tKWAByXypeY34QnrFpweRnIm7m9NxoYU9NPcK48HBer0Ye9J ++ZjWZjPzebyaoh47g0fY7xPnZr+QS/pNXCIlkM/AyiI0Oz2DCr/k8/8YNkpglKUos H4HltaaIHjJ4Jr6hjSEnKu/gWPVDS+oj+U4XsgBA8Q6N9KawXzVm8IjKlHQc7J3ZmJ UpTi+mnL89q3Co44zzID3AhK+7uqaxy435cN3ckm/fE3kV/mcFpDfQQ984DyglSXgY oeB4sI6oTTJaj7gN+9nooSVZADK8Hu9/Zy3PZbkfInlbYxxcyKRzDG0e5GU9MQXr6X Mku51rG70i4rQ== Date: Wed, 3 Aug 2022 22:18:22 +0100 Message-Id: <20220803211822.21182-6-paren@disroot.org> In-Reply-To: <20220803211822.21182-1-paren@disroot.org> References: <20220803211822.21182-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/irc.scm (senpai): New variable. --- gnu/packages/irc.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index efb32a39e0..3684e02e32 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2021 WinterHound ;;; Copyright © 2022 Jai Vetrivelan +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,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) @@ -61,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) @@ -688,3 +692,60 @@ (define-public inspircd server written in C++ for Unix-like operating systems.") (home-page "https://www.inspircd.org/") (license license:gpl2))) + +(define-public senpai + (let ((commit "e8ed8e7e13134ee7fc8ac116d58efc55813632a1") + (revision "2")) + (package + (name "senpai") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~taiite/senpai") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1rq07ldi8ga5pv9mm0g4sgipqxnnjcff2n1wsmjx3wqcbrmrqhbg")))) + (build-system go-build-system) + (arguments + (list #:import-path "git.sr.ht/~taiite/senpai" + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda* (#:key import-path #:allow-other-keys) + (invoke "make" "-C" + (string-append "src/" import-path)))) + (add-after 'build 'build-docs + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion + (string-append "src/" import-path) + (invoke "sh" "-c" + (string-append "scdoc < doc/senpai.1.scd " + "> doc/senpai.1 && " + "scdoc < doc/senpai.5.scd " + "> doc/senpai.5"))))) + (replace 'install + (lambda* (#:key outputs import-path #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" "-C" + (string-append "src/" import-path) + (string-append "PREFIX=" out)))))))) + (native-inputs (list scdoc)) + (propagated-inputs + (list go-github-com-delthas-tcell + go-mvdan-cc-xurls + go-golang-org-x-time + go-golang-org-x-term + go-golang-org-x-net + go-github-com-mattn-go-runewidth + go-git-sr-ht--emersion-go-scfg)) + (home-page "https://git.sr.ht/~taiite/senpai") + (synopsis "IRC client that works best with bouncers") + (description + "@code{senpai} is an IRC client that works best with bouncers. No +logs are kept, history is fetched from the server via @code{CHATHISTORY}, +and networks are fetched from the server via @code{bouncer-networks}.") + (license license:isc))))