From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aLHQOFvkbmbGhQEAe85BDQ:P1 (envelope-from ) for ; Sun, 16 Jun 2024 13:10:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aLHQOFvkbmbGhQEAe85BDQ (envelope-from ) for ; Sun, 16 Jun 2024 15:10:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=sergiodj.net header.s=20160602 header.b=01pcqPHB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=sergiodj.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718543451; a=rsa-sha256; cv=none; b=o6Oc7x6dcRUPe9fNfYljmzMyHDCZbahWT1bmuv85V4xpNHnD8jlJSQ4hfiqJ5MMpKei/js pdGd077+RU34uzJtCrKsX+KX4gEwkHkl2lzylCtxebSv7rSFw/IT2ngUXYqsKrXqvWnjNJ tnDwYlQgRksQhCJ+vSeSAVEzJvCFBE7YKOTcwkGorwW4XoCiie6MIKXAbBGVwDtt6Sa0Mv +7FK6Zkq6Pia+doTv8zTdwlGs9cOyhMxUn1Kyc0VnaLKXMz3h5vMExGlErpkHgu6hu0q8C jyhH9kyQ5Q+SnUMIZKywrxju1k6Z1ATGcYSclhUF7upJrCbojjLIcDqk9xVBLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=sergiodj.net header.s=20160602 header.b=01pcqPHB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=sergiodj.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718543451; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qe9lar4ILO7tiLV2F0XuHl+CT8ncOUPWyUA9/ChdfvU=; b=ZvE1YGjhcbajSrFh5yX4ppEb8DQrKjVrxe4MbSTLaNFGPJJqG1qw4d3VHbUnbrhylZ5uiY cG7ie9APCkMRXDi/3FlSWNA13faBUCBpMoT1bexFablTMwJXaxhv2cPssDS+Anr+qyLYam y2viF+khrDXYKYRLGrk8Tb1WcOByhNReqCyRsjS3uyVASl7v9+kXGrhLRsJ7NDhukcxsJe F9F8AenJFAsVM1fQYwrDnCh0WlY3WQXfSO3m4IFK50dHK8UTsIc7IPSGSAIAxhi4Oq44xR X6sxtNwDLbKLRa4hkGaEZMxqEhOIacEVlaGaOQAoX1QRuwKj+ai7Tk8ySGVY2Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 82D1836BEA for ; Sun, 16 Jun 2024 15:10:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIpeQ-0005vY-52; Sun, 16 Jun 2024 09:10:30 -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 1sIhvs-0002Ep-SK for guix-patches@gnu.org; Sun, 16 Jun 2024 00:56:00 -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 1sIhvs-0005ef-KY for guix-patches@gnu.org; Sun, 16 Jun 2024 00:56:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIhvt-00066q-KI for guix-patches@gnu.org; Sun, 16 Jun 2024 00:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71587] [PATCH 2/2] gnu: fediverse: Add snac2 Resent-From: Sergio Durigan Junior Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Jun 2024 04:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71587 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71587@debbugs.gnu.org Cc: Sergio Durigan Junior Received: via spool by 71587-submit@debbugs.gnu.org id=B71587.171851372423345 (code B ref 71587); Sun, 16 Jun 2024 04:56:01 +0000 Received: (at 71587) by debbugs.gnu.org; 16 Jun 2024 04:55:24 +0000 Received: from localhost ([127.0.0.1]:50972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIhvH-00064S-QT for submit@debbugs.gnu.org; Sun, 16 Jun 2024 00:55:24 -0400 Received: from mail.sergiodj.net ([195.201.110.160]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIhvF-000643-Fj for 71587@debbugs.gnu.org; Sun, 16 Jun 2024 00:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sergiodj.net; s=20160602; t=1718513714; bh=PORwhin6xY/h7YwzxFi2VulbJurZrULEeXb75QHuI8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=01pcqPHB67HoI//6UJ0Va/ig9faabzLQkz9hXSIdLsPpDdSVZXSO73swPPUWWNI8H mxZ4c3iCSZrnN3TpgxNbessgMIWZ+1LLvOev1mkha8Nma8S4s2yVPAnMUf7EucFz8e K+eEvvqoHjmoRKyBsPCozMuxi20eua7SB3/5uDa0= From: Sergio Durigan Junior Date: Sun, 16 Jun 2024 00:54:45 -0400 Message-ID: <9fef4fe2fce44fcc4164c8899d47662cc38fa82c.1718512816.git.sergiodj@sergiodj.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 16 Jun 2024 09:10:27 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.25 X-Migadu-Scanner: mx12.migadu.com X-Spam-Score: -4.25 X-Migadu-Queue-Id: 82D1836BEA X-TUID: 2gXdrwRXYDSK * gnu/packages/fediverse.scm (snac2): New variable. Change-Id: I085a53d0fea909c19f0ec562cc361ead3e849a40 Signed-off-by: Sergio Durigan Junior Change-Id: I6ffcb08c13953baec32dc8a0f50cdc0deee76956 --- gnu/packages/fediverse.scm | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/fediverse.scm b/gnu/packages/fediverse.scm index 3f3c259726..beeacd364b 100644 --- a/gnu/packages/fediverse.scm +++ b/gnu/packages/fediverse.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2019-2024 Efraim Flashner ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2021 Taiju HIGASHI +;;; Copyright © 2024 Sergio Durigan Junior ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,12 +24,15 @@ (define-module (gnu packages fediverse) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages check) + #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) @@ -44,6 +48,7 @@ (define-module (gnu packages fediverse) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages time) + #:use-module (gnu packages tls) #:use-module (gnu packages xml)) (define-public toot @@ -190,3 +195,57 @@ (define-public python-mastodon-py (description "This package provides a python wrapper for the Mastodon API.") (license license:expat))) + +(define-public snac2 + (package + (name "snac2") + (version "2.55") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/grunfink/snac2") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06qmg0wy1f4r6l8j52jnma4d2b8sj8fqf52vn7qqbbs8jz7aj74s")))) + (build-system gnu-build-system) + (inputs `(,curl ,openssl)) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'remove-usr-local + (lambda _ + (substitute* "Makefile" + (("-I/usr/local/include") + "") + (("-L/usr/local/lib") + "")) #t))) + #:tests? #f + #:make-flags (list ,(string-append "CC=" + (cc-for-target)) + ,(string-append "CFLAGS=-O2 -g -Wall -Wextra") + (string-append "PREFIX=" %output)))) + (home-page "https://codeberg.org/grunfink/snac2") + (synopsis + "Simple, minimalistic ActivityPub instance written in portable C") + (description + "Snac is a simple, minimalistic ActivityPub instance written in +portable C. + +It features: + +@itemize +@item Lightweight, minimal dependencies +@item Extensive support of ActivityPub operations, e.g. write public notes, +follow users, be followed, reply to the notes of others, admire wonderful +content (like or boost), write private messages, etc. +@item Multiuser support +@item Mastodon API support, so Mastodon-compatible apps can be used +@item Simple but effective web interface +@item Easily-accessed MUTE button to silence users +@item Tested interoperability with related software +@item No database needed +@item Totally JavaScript-free; no cookies either +@end itemize") + (license license:expat))) -- 2.43.0