From patchwork Sun Feb 14 18:57:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 27052 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 5804227BC45; Sun, 14 Feb 2021 18:59:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A866E27BC2E for ; Sun, 14 Feb 2021 18:59:19 +0000 (GMT) Received: from localhost ([::1]:39078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBMc2-0003UX-Rz for patchwork@mira.cbaines.net; Sun, 14 Feb 2021 13:59:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBMaq-0002Sw-NE for guix-patches@gnu.org; Sun, 14 Feb 2021 13:58:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBMaq-0000Jv-Ez for guix-patches@gnu.org; Sun, 14 Feb 2021 13:58:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBMaq-0003wb-Eh for guix-patches@gnu.org; Sun, 14 Feb 2021 13:58:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46513] [PATCH 5/6] gnu: Add agate. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Feb 2021 18:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46513 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46513@debbugs.gnu.org Cc: Alexandru-Sergiu Marton Received: via spool by 46513-submit@debbugs.gnu.org id=B46513.161332907515109 (code B ref 46513); Sun, 14 Feb 2021 18:58:04 +0000 Received: (at 46513) by debbugs.gnu.org; 14 Feb 2021 18:57:55 +0000 Received: from localhost ([127.0.0.1]:36724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBMag-0003vX-Np for submit@debbugs.gnu.org; Sun, 14 Feb 2021 13:57:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]:33281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBMaZ-0003uM-2J for 46513@debbugs.gnu.org; Sun, 14 Feb 2021 13:57:47 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5F0E12400FB for <46513@debbugs.gnu.org>; Sun, 14 Feb 2021 19:57:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1613329061; bh=1+nI8xVYLPOXFA2Rily3taktQGDK8C7OyNjmTCRQdJA=; h=From:To:Cc:Subject:Date:From; b=ijL6aIy0JFuqIiU40oY5MTwm/Mx43cWvJ2neRt1wJtASs+MrMSaHBH0kECFeRh6rR SVZfusKTig6TXFz9QGec9089KxRSdM74td8b8PpP8x3FXlUkAJf30BOXE6puthCNcD fxaa7FlxJP71xSIp+5M+Hr0kzOkVVbFlaFGiuvx9WVNUiETtY985owqdi+4RyZggs0 6Kkemymo5SnNpEtcUt4//kB+IffUz3fVcKgv6RedwUZyelc8ysYGMH8b7+g/miCMCG seuQj71XvBPPt63432GsNJO1CDMnCawsPkaWggj0rR+82+syQo4OXlPWSs9Q8KGAJh TJHHUrlKw1j+w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DdxLr732Mz9rxR; Sun, 14 Feb 2021 19:57:40 +0100 (CET) From: Alexandru-Sergiu Marton Date: Sun, 14 Feb 2021 20:57:30 +0200 Message-Id: <20210214185731.31197-5-brown121407@posteo.ro> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210214185731.31197-1-brown121407@posteo.ro> References: <20210214185104.30887-1-brown121407@posteo.ro> <20210214185731.31197-1-brown121407@posteo.ro> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/rust-apps.scm (agate): New variable. --- gnu/packages/rust-apps.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 9511cbf308..b832bd4453 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2021 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,6 +44,43 @@ #:use-module (gnu packages tls) #:use-module (gnu packages version-control)) +(define-public agate + (package + (name "agate") + (version "2.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "agate" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19szg91l4r76vrc44hifrqvk38c5q21hbycgi62bcb52rswgwgdk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.8) + ("rust-getopts" ,rust-getopts-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-mime-guess" ,rust-mime-guess-2) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-percent-encoding" + ,rust-percent-encoding-2) + ("rust-rustls" ,rust-rustls-0.19) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-rustls" ,rust-tokio-rustls-0.22) + ("rust-url" ,rust-url-2)))) + (home-page "gemini://qwertqwefsday.eu/agate.gmi") + (synopsis + "Very simple server for the Gemini hypertext protocol") + (description + "Agate is a server for the Gemini network protocol, built with the Rust +programming language. It has very few features, and can only serve static +files. It uses async I/O, and should be quite efficient even when running on +low-end hardware and serving many concurrent requests.") + (license (list license:expat license:asl2.0)))) + (define-public bat (package (name "bat")