From patchwork Fri Apr 26 08:02:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Eisses X-Patchwork-Id: 63397 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 3AE1227BBE9; Fri, 26 Apr 2024 09:09:55 +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 785B227BBE2 for ; Fri, 26 Apr 2024 09:09:53 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0Ge0-0002t8-4W; Fri, 26 Apr 2024 04:09:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0Gdy-0002sS-QJ for guix-patches@gnu.org; Fri, 26 Apr 2024 04:09:18 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0Gdy-00027Z-Hq for guix-patches@gnu.org; Fri, 26 Apr 2024 04:09:18 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0GeG-00065m-Dl for guix-patches@gnu.org; Fri, 26 Apr 2024 04:09:36 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70317] [PATCH v2 13/13] gnu: packages: Add soju Resent-From: Jesse Eisses Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Apr 2024 08:09:35 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70317@debbugs.gnu.org Cc: Jesse Eisses Received: via spool by 70317-submit@debbugs.gnu.org id=B70317.171411897023344 (code B ref 70317); Fri, 26 Apr 2024 08:09:35 +0000 Received: (at 70317) by debbugs.gnu.org; 26 Apr 2024 08:09:30 +0000 Received: from localhost ([127.0.0.1]:33865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0Ge6-00063e-2D for submit@debbugs.gnu.org; Fri, 26 Apr 2024 04:09:29 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:56922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0GZR-000593-2G for 70317@debbugs.gnu.org; Fri, 26 Apr 2024 04:04:45 -0400 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=Zo5X8/xjUiqtKD5e2iXTJC7twWZRnj6k7TP8QVkDWVbp4JIZLrsVMi9JxJHKISojAKiH+omeTU1bY4eePJsBrKTMv5GAS6QjhCPw71vPKT5OhsrUFWPv9hLEQnXKS1n2TB4NYeowxflswW1jQoP3kZQGIkmezo1TT+eJtLrLfP//w3prVJMLNXDo6Wf8+dQu2515lWojiaHdFxH1lziOukHPVbQiGxxNGvVfr09p6igb1g9sa3n3lYjWUzexKY9iegyxeqMf7keOwY4+ZeQ60B8OA9hpvGtOSzeRCL1krLYtxpy5qrpJGGTNhOQf6MaU0n565L7/JKdqyY7EoQreow==; s=purelymail3; d=eisses.email; v=1; bh=Au7ypoegHH3ZnCLpkpZKjDvI1ufuSeor0E4IaUHjhKc=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=i62exTuLzKLWOJ1Q10eZ1WFBnNDD6F9g5K5ox6aAqUYCErB9Zp9adQ3zon717Aji3/+DKV5v+8HVQ7xus8wBX+Odt1mavxq8A9eN+q9Zw7seZy2kKHjJ+wBXKzIBy5dE0yaldzj/jMrCkAU+8BavMefYnvJnpymvlUB/tBZJkxIxC9GDvKu1NTAO7tprSev4LDsGCU49cqhPC9efK4DJyQbBtSNZLFH21glOsDojDjwZTREZQUPvkvLNMhlBv9uO+M/S5mfZDNwXSInW0AlmUu4YqoLSJEgcGW/hEs289764u1cv1ldNlUzECElH5/NW1eSqQmnELr5GEQrgScwOCA==; s=purelymail3; d=purelymail.com; v=1; bh=Au7ypoegHH3ZnCLpkpZKjDvI1ufuSeor0E4IaUHjhKc=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 18307:3403:null:purelymail X-Pm-Original-To: 70317@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1319557813; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 26 Apr 2024 08:03:40 +0000 (UTC) Date: Fri, 26 Apr 2024 10:02:00 +0200 Message-ID: <20240426080315.25131-14-jesse@eisses.email> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240426080315.25131-1-jesse@eisses.email> References: <20240426080315.25131-1-jesse@eisses.email> MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail 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: , Reply-to: Jesse Eisses X-ACL-Warn: , Jesse Eisses via Guix-patches X-Patchwork-Original-From: Jesse Eisses via Guix-patches via From: Jesse Eisses Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/irc.scm | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 80b2e740ee..90dad61eb9 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -1032,3 +1032,80 @@ (define-public snuik now). It has some basic functionality only, such as seen, tell, and what.") (license license:gpl3+))) + +(define-public soju + (package + (name "soju") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~emersion/soju") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1a0mp8f5i1ajh67y6fasmzgca3w1ccaiz19sx87rflbyi1mrhdlz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "git.sr.ht/~emersion/soju" + #:go go-1.19 + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion "src/git.sr.ht/~emersion/soju" + (setenv "SYSCONFDIR" + (string-append (assoc-ref outputs "out") + "/etc")) + (invoke "make")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion "src/git.sr.ht/~emersion/soju" + (let ((bin-dir (string-append (assoc-ref outputs "out") + "/bin")) + (conf-dir (string-append (assoc-ref outputs + "out") + "/etc/soju"))) + (install-file "soju" bin-dir) + (install-file "sojudb" bin-dir) + (install-file "sojuctl" bin-dir) + ;; the default config file is not useful so we empty it for now + (substitute* "config.in" ((".*") "")) + (mkdir-p conf-dir) + (copy-file "config.in" + (string-append conf-dir "/config")))))) + (add-before 'build 'set-flags + (lambda _ + (begin + (setenv "CGO_LDFLAGS" + "-Wl,--unresolved-symbols=ignore-in-object-files") #t)))))) + (native-inputs (list scdoc)) + (inputs (list go-google-golang-org-protobuf go-1.19)) + (propagated-inputs + (list go-nhooyr-io-websocket + go-gopkg-in-irc + go-golang-org-x-time + go-golang-org-x-crypto + go-github-com-prometheus-client-golang + go-github-com-pires-go-proxyproto + go-github-com-msteinert-pam + go-github-com-mattn-go-sqlite3 + go-github-com-lib-pq + go-github-com-emersion-go-sasl + go-github-com-sherclockholmes-webpush-go + go-git-sr-ht-sircmpwn-go-bare + go-git-sr-ht-emersion-go-sqlite3-fts5 + go-git-sr-ht-emersion-go-scfg)) + (home-page "https://git.sr.ht/~emersion/soju") + (synopsis "User-friendly IRC bouncer") ; + (description + "Connects to upstream IRC servers on behalf of the user to provide +extra functionality. soju supports many features +such as multiple users, numerous @@url{https://ircv3.net/,IRCv3} extensions, +chat history playback and detached channels. It is well-suited for both small +and large deployments.") + (license license:agpl3))) +