From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wFWIL6dC8mR2fQEAauVa8A:P1 (envelope-from ) for ; Fri, 01 Sep 2023 21:59:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wFWIL6dC8mR2fQEAauVa8A (envelope-from ) for ; Fri, 01 Sep 2023 21:59:35 +0200 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 8F79E32CFC for ; Fri, 1 Sep 2023 21:59:35 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=JbK11nyt; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693598375; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=ArneSYaBfgmdnM63twHH6QLFE+icc+b17Ddv6kwHAZ8=; b=LXa6d7tJ/vtMOB3x/dtthhRH/1n7tfgwGoXKB9iO8P8EDHgL6mI9sO9idz9rwANOwcRu/t LGlXeefuftOiyFNH7yORvo0CQ1PboAU9V+556fM9gkFli5fXf7UFUaTBoWRgSc8I34LMWW kVBYRAQ7dskto4PoY31MAwNcaWqZmKQ2XNnXSwO6dgqFa3HmdkjZVjHOJ1H6FUuZwyqvJ+ nHt6ed6I5CxcZZPnlPXLEygZEXdIWmCyxNI+ZY1nVE2knEqvspQBy3kVCSOIId17HOWNNd hz3hgYlqPp5Rd0yi3HYBnAh5EUpsoioJJUUFUXQUvbwI2bAp09sBNTXiLJthzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=JbK11nyt; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693598375; a=rsa-sha256; cv=none; b=QfpbCePTCAt2bt78qFn5JOiywR5W5KxFgpHBTn0ld5YOCf9Lsl8z/MjN/Ya9Yu/Mz6G1BO /kKrSZnbbFkruSruYnmosjPoofW6Vgc2aBYv2DoHXPjbpdL0+7TXM3o3wLy9OcguMe2VM0 OctRDbYcMEfJOKeMzkJ2Sk0e9VnBH7ucDMKuF8kzG+8j3lY+Qe2mdrVHbXapHzwFV1+1o+ ksNEWbu30TxEubykkOqd3evEQw18kQiYaTyvyJ2+e+3tj5TR5bAgGncfi4bXUigIQuOTwu LYxJSlugJFoQ6Cd8Lzz1C6AnXYtxsvFQaFHxx04ujKxCC/811lNCqu3UajMEIg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcAIF-000887-IC; Fri, 01 Sep 2023 15:58:59 -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 1qcAIC-00086U-Pf for guix-patches@gnu.org; Fri, 01 Sep 2023 15:58:57 -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 1qcAIC-0007S1-Hu for guix-patches@gnu.org; Fri, 01 Sep 2023 15:58:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcAIL-0004XM-RL for guix-patches@gnu.org; Fri, 01 Sep 2023 15:59:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65118] [PATCH v2 9/9] gnu: Add nsq. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Sep 2023 19:59:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65118 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65118@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 65118-submit@debbugs.gnu.org id=B65118.169359832517342 (code B ref 65118); Fri, 01 Sep 2023 19:59:05 +0000 Received: (at 65118) by debbugs.gnu.org; 1 Sep 2023 19:58:45 +0000 Received: from localhost ([127.0.0.1]:34060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcAI1-0004Ve-1S for submit@debbugs.gnu.org; Fri, 01 Sep 2023 15:58:45 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:44232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcAHx-0004Tp-I2 for 65118@debbugs.gnu.org; Fri, 01 Sep 2023 15:58:42 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401b393ddd2so24464655e9.0 for <65118@debbugs.gnu.org>; Fri, 01 Sep 2023 12:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693598306; x=1694203106; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ArneSYaBfgmdnM63twHH6QLFE+icc+b17Ddv6kwHAZ8=; b=JbK11nyt7rCgnj4q6ma/ylOzr4WioQMlHx6qIcXdN2W3mNiPVojmmY642u/8DNZiVN K8bz/iK/9O9nGmuH4be/+FgsD4xT8k2z7uUayBy+f1nxw4ANDrdtTR7J3+oW4l4dzyhZ yJqi9HhGHIATh4VVAHSLW6gM6wtInTvpvNbmXNW0pI3FDA0oTjxx3E7QSjOoMYklwdIr kiZnR0cZVvZKPEOn10psMnOUh4n6I7VfjwRsyuSi77h5UV+1V5kRvOh5/ty7j72YHA4u iPBT1qSURaKrMq8jGjWgxpFkDIGX7Y4wIu5JCDM99Y57pu7IXNXQ27fY6Fk6NUPcVLNy zX3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693598306; x=1694203106; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ArneSYaBfgmdnM63twHH6QLFE+icc+b17Ddv6kwHAZ8=; b=H4AjNTZdk7kyByczROgJKrH4fxIpbgLG9hf8iujybZpRj3uxHa7GNuhA4rd341qzZT pOFcZnwKr6gwHYH57dsJ75GQ9cLAgdvw9w58JQk5HFA0/7t+cc/GNPkMNCw4c9quTzSf t882r08aTkpo9+h0i2PAS4p4ReaEMbuWcU6inweFiEgxQQxGnJrm/PZWGm9KjBsxPC8Z mK2oyIWEZ2Y/APAJuYKppQEVzOGlHBemo6ZDq/QyXrtHAiQknRQuWSwXQzsFKg1msRWu 7BEUUAnrW9Ero4XB0eCvQxTZsV7lRty85KToCvyDU85XGRmvQdisteyJddyo19JmNNHM P1sw== X-Gm-Message-State: AOJu0YxIPLk1P44jUgqBHwmEb9tBjkBHUQk4z/7vEghsEA0fNjZj0Wao qYZbgOTSS/kevlJPsY3U/m1PgHX2o9cUHA== X-Google-Smtp-Source: AGHT+IEwRaC2qgpzCoq3bjsNTDJaIQ0WAILwPjZO6bWPF5cu78sPDhnPEOga53U+klno+tO6Nk8REQ== X-Received: by 2002:a1c:720c:0:b0:3fe:25b3:951d with SMTP id n12-20020a1c720c000000b003fe25b3951dmr2410454wmc.5.1693598306234; Fri, 01 Sep 2023 12:58:26 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id p22-20020a1c7416000000b003fe23b10fdfsm8978592wmc.36.2023.09.01.12.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 12:58:25 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 1 Sep 2023 20:58:18 +0100 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Migadu-Spam-Score: -3.62 X-Spam-Score: -3.62 X-Migadu-Queue-Id: 8F79E32CFC X-Migadu-Scanner: mx2.migadu.com X-TUID: nfLNZekYl5dA * gnu/packages/high-availability.scm (nsq): New variable. --- gnu/packages/high-availability.scm | 86 ++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 11ff8014cf..553095cb75 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -34,6 +34,7 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages golang) #:use-module (gnu packages hardware) #:use-module (gnu packages linux) #:use-module (gnu packages lua) @@ -43,12 +44,14 @@ (define-module (gnu packages high-availability) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages rsync) + #:use-module (gnu packages syncthing) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages xml) #:use-module (gnu packages) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -190,6 +193,89 @@ (define-public kronosnet in general better performances compared to the old network protocol.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public nsq + (package + (name "nsq") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nsqio/nsq") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ajqjwfn06zsmz21z9mkl4cblarypaf20228pqcd1293zl6y3ry8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/nsqio/nsq" + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "make")))) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (with-directory-excursion (string-append "src/" import-path) + (invoke #$@(if (target-x86?) + (list "go" "test" "-v" "-race" "./...") + (list "go" "test" "-v" "./..."))))))) + (replace 'install + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "make" (string-append "PREFIX=" #$output) + "install"))))))) + (native-inputs + (list go-github-com-bitly-go-hostpool + go-github-com-bitly-timer-metrics + go-github-com-blang-semver + go-github-com-bmizerany-perks-quantile + go-github-com-burntsushi-toml + go-github-com-davecgh-go-spew + go-github-com-golang-snappy ; Move to (gnu packages golang) + go-github-com-julienschmidt-httprouter + go-github-com-mreiferson-go-options + go-github-com-mreiferson-go-svc + go-github-com-nsqio-go-diskqueue + go-github-com-nsqio-go-nsq + python-wrapper)) + (home-page "https://nsq.io") + (synopsis "Realtime distributed messaging platform") + (description + "NSQ is a realtime distributed messaging platform designed to operate at +scale, handling billions of messages per day. + +Key features: +@itemize +@item support distributed topologies without @acronym{SPOF, Single Point of +Failure} +@item scale horizontally (no brokers, seamlessly add more nodes to the +cluster) +@item low-latency push based message delivery (performance) +@item combine load-balanced and multicast style message routing +@item excel at both streaming (high-throughput) and job oriented +(low-throughput) workloads +@item primarily in-memory (beyond a high-water mark messages are transparently +kept on disk) +@item runtime discovery service for consumers to find producers (nsqlookupd) +@item transport layer security (TLS) +@item data format agnostic +@item few dependencies (easy to deploy) and a sane, bounded, default +configuration +@item simple TCP protocol supporting client libraries in any language +@item HTTP interface for stats, admin actions, and producers (no client +library needed to publish) +@item integrate with @acronym{StatsD, Stats aggregation Daemon} for realtime +instrumentation +@item robust cluster administration interface (nsqadmin) +@end itemize") + (license license:expat))) + (define-public corosync (package (name "corosync") -- 2.40.1