From patchwork Mon Oct 10 16:57:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 43308 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 0C2A927BBEA; Mon, 10 Oct 2022 18:28:32 +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 A3F9E27BBE9 for ; Mon, 10 Oct 2022 18:28:31 +0100 (BST) Received: from localhost ([::1]:59352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohwZp-0006bT-RQ for patchwork@mira.cbaines.net; Mon, 10 Oct 2022 13:28:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohwD8-0004u0-Qn for guix-patches@gnu.org; Mon, 10 Oct 2022 13:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohwD8-0000jb-Gl for guix-patches@gnu.org; Mon, 10 Oct 2022 13:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohwD8-0002K7-Bo for guix-patches@gnu.org; Mon, 10 Oct 2022 13:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56961] [PATCH v2 3/4] gnu: packages: Add senpai. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Oct 2022 17:05:02 +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.16654214598853 (code B ref 56961); Mon, 10 Oct 2022 17:05:02 +0000 Received: (at 56961) by debbugs.gnu.org; 10 Oct 2022 17:04:19 +0000 Received: from localhost ([127.0.0.1]:49730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohwCO-0002IY-Tg for submit@debbugs.gnu.org; Mon, 10 Oct 2022 13:04:19 -0400 Received: from knopi.disroot.org ([178.21.23.139]:46088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohwCI-0002I0-Tp for 56961@debbugs.gnu.org; Mon, 10 Oct 2022 13:04:13 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3E4664CB91; Mon, 10 Oct 2022 19:04:10 +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 UTF8SMTP id 2gLRkonGcrZg; Mon, 10 Oct 2022 19:04:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665421035; bh=PSEMA7uFUUPY59z5jFvoXwaFroROQf86KnHUP5aaiMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GxVYuGea+xBDvofrSFZezJ6RD4L9TO0g7Aqko4WNcG5J6HbryrSJOXA/Jql5zq5sh cuIeUBHSsgZyaFsvVDlDNIMmijAWoTqENXZqOqqQuHWZfiXXmedPWcc9S8UgokxqVF RxIxOu8Vlv+KbKKPxizhma0kpw7bn1ep/dsS/YUkIFU5D9H3DHcUTOtJ/Qfhyn3SJI hTTLasCd7hxbNd5v4T3VbElLrkPH+6KtKEVLu1dzyJpUi3UWDlu1lvmB5NuhD7K1Xr FxQ+yYqqSPVJK7fP4JYIa0lq+oabyiCv4FUxMAqgcI1CV9ck5syqN2EBtgZpdJXzCS 5Ok5NCSPZAW9A== Date: Mon, 10 Oct 2022 17:57:08 +0100 Message-Id: <20221010165709.22638-3-paren@disroot.org> In-Reply-To: <20221010165709.22638-1-paren@disroot.org> References: <20221010165709.22638-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 | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index b82210081c..b64932310b 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,47 @@ (define-public inspircd server written in C++ for Unix-like operating systems.") (home-page "https://www.inspircd.org/") (license license:gpl2))) + +(define-public senpai + (package + (name "senpai") + (version "0.1.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 + "1g3fpchjl859xl529wwdx8l0m88ji813mphmh316shdkm09ff160")))) + (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)))) + (replace 'install + (lambda* (#:key import-path #:allow-other-keys) + (invoke "make" "install" "-C" + (string-append "src/" import-path) + (string-append "PREFIX=" #$output))))))) + (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 via @code{bouncer-networks}.") + (license license:isc)))