From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EOPrINfFumM5oQAAbAwnHQ (envelope-from ) for ; Sun, 08 Jan 2023 14:32:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OHUYIdfFumO9YQAA9RJhRA (envelope-from ) for ; Sun, 08 Jan 2023 14:32:07 +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 023D93AE02 for ; Sun, 8 Jan 2023 14:32:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEVmO-00012x-MY; Sun, 08 Jan 2023 08:32:04 -0500 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 1pEVmM-00012i-QY for guix-patches@gnu.org; Sun, 08 Jan 2023 08:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEVmM-0002dI-I7 for guix-patches@gnu.org; Sun, 08 Jan 2023 08:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEVmM-0002n4-Dp for guix-patches@gnu.org; Sun, 08 Jan 2023 08:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60622] [PATCH] gnu: Add nanomq. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60622 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nikolay Korotkiy Cc: 60622@debbugs.gnu.org Received: via spool by 60622-submit@debbugs.gnu.org id=B60622.167318468110675 (code B ref 60622); Sun, 08 Jan 2023 13:32:02 +0000 Received: (at 60622) by debbugs.gnu.org; 8 Jan 2023 13:31:21 +0000 Received: from localhost ([127.0.0.1]:60173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEVlh-0002m7-0F for submit@debbugs.gnu.org; Sun, 08 Jan 2023 08:31:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEVld-0002lt-Q0 for 60622@debbugs.gnu.org; Sun, 08 Jan 2023 08:31:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEVlY-0002Xu-JO; Sun, 08 Jan 2023 08:31:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ZpbORgxhOpOuVaNVV6yMMiZhuaBj9RjAC7RP7VHhRYE=; b=GAbZkEv24gnGFTv5ufGe xMqNanToOu9D+/zBhDRbFIoBoAyfL0BVsI0c9CEGTLtWkEk223Mri6LTu5tGDIhJaYqLIrRNMkcJv 4Urq4CMed0cG3SV0yIbfXKJoJPJKeFiCM6n48REWk6rvvbL9/R/b0vrVJtFCIP/xpYapzBIfUzkaD grA3MLY5J16rWgo0sMjRAQICvl8N2VBOP87GuYhUhlFnSiUNLx+clLYlAk8WOGV0zJrIGPFRB8sFh pZ4HrQpWO0SE1DHVCTuaJik32ne1omYXnNLYYPh9JXg8sfoBINZxZQAGVwuIfMLCa/j4kmzsM2+C+ mjj8QgqNxwSpww==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEVlV-0007f2-3j; Sun, 08 Jan 2023 08:31:11 -0500 From: Mathieu Othacehe References: Date: Sun, 08 Jan 2023 14:31:04 +0100 In-Reply-To: (Nikolay Korotkiy's message of "Sat, 7 Jan 2023 15:51:38 +0400") Message-ID: <87tu11up9j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673184727; 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: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=ZpbORgxhOpOuVaNVV6yMMiZhuaBj9RjAC7RP7VHhRYE=; b=ROZi9W7jcRycgAP8PRNJgYWxuIhdoEt6eu7O3+W06GTzOSe3jGDpcPnio8NZ/Q/dFCcr1D bt6BXFy89cAcleW8cW0hoHEnevigkiIHjmRDn+Ql9MMmozVGp5ct1jYi+YzSA191BkU3FH vsR89IiSIp9Lzr3AYPbNmsNHh7BsC7Yn3zArpH1o/Gw5JuEwUAaQWAC/ZFtM4LBbD5eU/x rCxdX59xIyhC31/zeIN3dhd2kRKyRZlk9/NCepJFnvHB+VqgezkfQhlJ9nDvovbkSBrv1T UiMM4w6bjF9k2v3/BAGS/ejvFqLn0zFKWgS7uNLI7aYfqMhuZjz809b6WondqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GAbZkEv2; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673184727; a=rsa-sha256; cv=none; b=dA3Os6cE5GQTwhhqgQ8B7JyhuP3V4ahUcLctm1aqN4i4PS6QHZN/QZPCxQswanZpwcBSkV kCngwwwDY/+wKOZdYpJwf+wLLZaqMOCNH4t12IcwrBVfcndoG8CPGGmdR48im7sAQD0I0M Wy1EqD21R2R9A4RapAEeOLq74NXjRFnkdMS5c+/0k/X9l8+HvEGKiMkYW3TBMoYJ6r+blB 2bWsdrem2yMA/lEMhT6Do3IhuHu8JN6f2wHI/DpUdm8stH4GIzf2fMWy0I4GKjVwVWOq7h L7qlagGS1Twyoa4MleQfwbBPyBcIlSe4L59lNmji0veQ40jVuVRF9f3w9klepg== X-Spam-Score: -3.96 X-Migadu-Queue-Id: 023D93AE02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GAbZkEv2; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.96 X-TUID: gQJhIsJlTt1F Hey, > + (uri (git-reference > + (url "https://github.com/emqx/nanomq") > + (commit version) > + (recursive? #t))) It looks like nng is packaged by Guix, can it be used? > + (arguments > + `(#:tests? #f You need to justify why the tests are disabled. Is it because there are no tests, because some do not pass? > + #:configure-flags (list "-DNNG_ENABLE_TLS=ON" "-DNNG_ENABLE_SQLITE=ON") > + #:phases (modify-phases %standard-phases > + (add-after 'unpack 'fix-etc-destination > + (lambda _ > + (let* ((out (assoc-ref %outputs "out")) It would be better to use the new gexp based style. You can have a look to the lldpd package above for an example. > + (etc (string-append out "/etc"))) > + (substitute* "CMakeLists.txt" > + (("DESTINATION /etc") > + (string-append "DESTINATION " etc)))) #t))))) You can omit the trailing #t. > + (inputs (list mbedtls-apache sqlite)) > + (synopsis "An ultra-lightweight and blazing-fast MQTT broker for IoT edge") This a commercial description. Something like: "Lightweight MQTT broker" would be enough. > + (description > + "NanoMQ bases on NNG's asynchronous I/O threading model, with an > +extension of MQTT support in the protocol layer and reworked transport layer, > +plus an enhanced asynchronous IO mechanism maximizing the overall capacity.") It does not really tell what this package does, what is a broker for instance? Could you please send an updated version :)? Don't hesitate to ask for guidance if my comments are unclear. Thanks, Mathieu