From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IF/bHQALF2LUKQAAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 05:35:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0MOSGgALF2KSWAAAauVa8A (envelope-from ) for ; Thu, 24 Feb 2022 05:35:12 +0100 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 CAB3343601 for ; Thu, 24 Feb 2022 05:35:11 +0100 (CET) Received: from localhost ([::1]:50212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nN5qQ-00031G-LR for larch@yhetil.org; Wed, 23 Feb 2022 23:35:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nN5qI-00030y-Kc for guix-patches@gnu.org; Wed, 23 Feb 2022 23:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nN5qI-0003xI-9l for guix-patches@gnu.org; Wed, 23 Feb 2022 23:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nN5qI-0003R5-7o for guix-patches@gnu.org; Wed, 23 Feb 2022 23:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49929] [PATCH] gnu: Add gmid. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Feb 2022 04:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49929 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: cage Cc: 49929@debbugs.gnu.org Received: via spool by 49929-submit@debbugs.gnu.org id=B49929.164567725513147 (code B ref 49929); Thu, 24 Feb 2022 04:35:02 +0000 Received: (at 49929) by debbugs.gnu.org; 24 Feb 2022 04:34:15 +0000 Received: from localhost ([127.0.0.1]:47109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN5pR-0003Ps-AR for submit@debbugs.gnu.org; Wed, 23 Feb 2022 23:34:15 -0500 Received: from mail-qk1-f169.google.com ([209.85.222.169]:36711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN5pP-0003PT-8c for 49929@debbugs.gnu.org; Wed, 23 Feb 2022 23:34:08 -0500 Received: by mail-qk1-f169.google.com with SMTP id g24so911401qkl.3 for <49929@debbugs.gnu.org>; Wed, 23 Feb 2022 20:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=MuqfqLDT/2TeP1niFBZfeecz6zhSkS+tNmu88iNo/Jc=; b=hDmhXG32Q81b6mtrSNlwSFjin1qCWeBIZB4t5kxEy4UHSiYd7Ekslf3gHF1CVnwg9y zvvNbYsyi17FmN86uFvJ0lRLspnTY8XhQZMsa4xvQzISzlLLNL928eWGbXX3dT6RmPrB qPx8PwahlablGBroqsPVSIHGtex14FCLZYDVNpu7Kjr18RRcNJXhVVBqkzr6m687CmOT XEunaKmAag2vxj1no6LeBBXpX/VwC9EwVDeGLYO+36ZKS4dw1pzGHST/DfwixlPgXofl IAWvlrAe4u3H6llbtA2mL/P7A9X6kMuO+MnFoul1ojKiqlUDNKKvE+zBtDpDhPo4+T0Y 14mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=MuqfqLDT/2TeP1niFBZfeecz6zhSkS+tNmu88iNo/Jc=; b=ya9SqSpLo/GlazXHl/7DhVERKxXwgJ1QUSVivpyi3VkWYPEF/4WZQcz1nx/J+Wv9n4 GLOt2Il2ucJfIshf4O6vo82nwEIL4a29mtKCo3lgB7Y7z5Vjy8IFyaAIfcKYiaIka2c8 cmLPfRgzzaLUqB0eZRPCZvTLIU4DFul4OYAhZ2IICD/g+j3n5yVLeXr6yAPOsHzx8WAW vzyOvON9zYu6L+RBhgwB8JcK880KRr2FJTmzgyTbh27NI9Ks0XK4qs22I4zUYWtFKeVp bOiIro/L5ZVDcjx/AizLdbVA2uxAWEdgv1xwGXLKQyGRAMoRbVHYCj94jDGOJLB7hoys z3Zw== X-Gm-Message-State: AOAM532jiysDsjM4H2Ix/rZ/907ZNrxKGs7j41piw3KmGxKRMlknDkSA QZb3EVlJSezrJPTwHXPxNd+9xOobNdjCLA== X-Google-Smtp-Source: ABdhPJyQmKoxicI5Amf7i7xQi8p5Wz/7fbht3+/RXbpxidhRu3ltsZFwCXf9QM+2E74jjV8c6NbEEA== X-Received: by 2002:a05:620a:1451:b0:648:e9c1:3f8b with SMTP id i17-20020a05620a145100b00648e9c13f8bmr560791qkl.421.1645677241286; Wed, 23 Feb 2022 20:34:01 -0800 (PST) Received: from hurd (dsl-156-1.b2b2c.ca. [66.158.156.1]) by smtp.gmail.com with ESMTPSA id r18sm1077533qtw.27.2022.02.23.20.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 20:34:00 -0800 (PST) From: Maxim Cournoyer References: Date: Wed, 23 Feb 2022 23:33:59 -0500 In-Reply-To: (cage's message of "Sat, 7 Aug 2021 20:23:14 +0200") Message-ID: <875yp4lw7c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645677311; 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=MuqfqLDT/2TeP1niFBZfeecz6zhSkS+tNmu88iNo/Jc=; b=a9XrkoITUEbo7QjztDsWjoNDTnys/rKgrsVah863JNeyur0URM+KvSOOvq0k9JvhgcagFV ZgvN5+3sdM5VpxPbMV4LdltjnlkpelR6SwvJvcbxYkB+Rh41LBYNNFxw/49NNiKzqdjybX Lhdi5KB+7MTArkSxh78RB3KNuzXustuEb7g1239iVkpLNjXlcNtyUfTMhC1XoQoqtiz8It 7cFZfq8Hn9MfVW3KPAW+ZSlVc2JswMaMkWRwD4VQLHvdaoRxigL/cRyRfyXXa1O6JPcFe6 016XyxiJvsndYt2VTadSpTMIeWnF7hEWcyycd/iGjc1Cz+nSjWv9j4ZjuUBvAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645677311; a=rsa-sha256; cv=none; b=Otzl46Aj8pskWuUPU++cEKmX29bDnGAuEE1H4rqySAZkvT6Sj0XB4QNG7j8Zjzs5VdDsri xy01HB+lAHf9mYBsrc1KLwDDgflJxsO4+SgSodu/xNUHolru8WAP9+Mu0u0RHJZ7YHexJX JrVihQEH/aQ5QdBVnVHjP8LScKtDNwibVTbkhePAv7e9nkINa8lsdOKjSZY+LHCMUBl03m NUU5dzRyi/v6rHu9lHsIOv2XjYjnoZQK1i3d64eulnknZX9pS4zBw5ZYzmonf5RXgSMNs8 P/OQIjWCsccvNjnXnXatPoN2VsBazJLRwv+KVTT71U0mUQLV+wEsFHS8pBW4oA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hDmhXG32; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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" X-Migadu-Spam-Score: -2.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hDmhXG32; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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" X-Migadu-Queue-Id: CAB3343601 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6FVJXd0X82Lk tags 49929 moreinfo -- Hello! cage writes: > --- > gnu/packages/networking.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm > index 05fd092b23..0ea07f0f15 100644 > --- a/gnu/packages/networking.scm > +++ b/gnu/packages/networking.scm > @@ -44,6 +44,7 @@ > ;;; Copyright =C2=A9 2021 Hartmut Goebel > ;;; Copyright =C2=A9 2021 Justin Veilleux > ;;; Copyright =C2=A9 2021 Vinicius Monego > +;;; Copyright =C2=A9 2021 cage > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -4177,3 +4178,38 @@ public key authentication and Kerberos single-sign= -on. It also includes > command-line @acronym{SFTP} and @acronym{SCP} implementations.") > (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/") > (license license:expat))) > + > +(define-public gmid > + (package > + (name "gmid") > + (version "1.7.2") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/omar-polo/gmid/releases/d= ownload/" > + version "/gmid-" version ".tar.gz")) > + (sha256 > + (base32 "0ag5zcwnr5vmy13bc9c36hnv9pflks68b0k6w0ng97inrm37klis"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ;no tests Apparently, the Makefile has a 'regress' target [0] to run a test suite (the project has a CI enabled, in doubt you can refer to their CI recipe). [0] https://github.com/omar-polo/gmid/blob/master/Makefile > + #:phases > + (modify-phases %standard-phases > + (replace 'configure > + ;; The configure script is hand-written, not from GNU autotoo= ls. > + (lambda* (#:key configure-flags inputs outputs #:allow-other-= keys) > + (let ((prefix (string-append "PREFIX=3D" (assoc-ref outputs= "out")))) > + (setenv "CC" ,(cc-for-target)) > + (apply invoke "./configure" (list prefix)) > + #t)))))) Ending phases by #t is obsolete (you can drop it), and you can more simply write (invoke "./configure" (string-append #$output)), as long as you replace the backquoted arguments list by a simple (list ...) and define the phases as a G-exp, e.g.: #~(modify-phases [...]) > + (native-inputs > + `(("pkg-config" ,pkg-config) > + ("bison" ,bison) > + ("flex" ,flex))) > + (inputs > + `(("libevent" ,libevent) > + ("libressl" ,libressl))) You can use the new style for inputs, as explained in this blog post [1] [1] https://guix.gnu.org/en/blog/2021/the-big-change/ > + (home-page "https://git.omarpolo.com/gmid/about/") > + (synopsis "Simple and secure Gemini server") > + (description "Gmid is a fast Gemini server written with security in = mind.") > + (license license:x11))) The rest looks good to me, well done! Could you send an update with changes along these lines? Thank you, Maxim