From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wPI8Hw77z2THgAEASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 21:57:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CN9nHw77z2QhBAEA9RJhRA (envelope-from ) for ; Sun, 06 Aug 2023 21:57:02 +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 2F2CD5B8A4 for ; Sun, 6 Aug 2023 21:57:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Oj+9W7Md; 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=1691351822; 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=WeJSd80SmUIV0ECgTL2W2G5d+iVYc1o0wMYde0s0/Ek=; b=mHSIlPxzwqsNhjkRnsp9ugZuxQl2QNfTS91t5yDYdWTvrgCOyFYTFqhOY1vukGm9rQEVu1 8caiOI1iweuf2XweN4jYMLUw8x79bRxoCGrPGG8HURhArktnc4/6vJKPmiQNJOvVYJ3RVf VAankT0/wEb26TJ8zk7TI0D3BwvT0zSL/cJVozLe29sz9QLEM1LFjsquwhbH2m5sYVFqjl BLrrD0KwPvS2qnE4vUu/sgZMKFr81cM0IvQxcd3W1J2tbm3RXKq9hTNOc6/bw4UveIfRbr gKjNgUmHGxdioRtt5a8vB2ItjNg79KErZB7YEj+TWRrl1OYG8Zj3mctaFkSMTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691351822; a=rsa-sha256; cv=none; b=EPggJg+PmD6O5NVvxNrjlyG14FM8I0v89kGN4O1Qaioj1xkKf7bYdV9no6a01MjbG1ZN0H QMpqPYICHmLbuJxA6ah3dlIQ7Z5MB2wUlb0LKu/Tg+0mjR+Ss0DoOzfhJUIN9D7p901IPr jR6x647BjviZpqR0UgGTTeOVqOwqxfJh+sMUpfGBW7RwnfXx+Tk12I5wkeGZKUdSQBZ366 nepj5MrrGWVQ1ZgfiBnwBJGpEEjBxOLvEbhHGy0VCLRwPImu0lOAU483RponW1TTfPIkyl zQOT9/sqxX4KG6nitoxHDygdFvDBO/+GqT7KpXGcYTpKQKHXR7uyig5bPdJTnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Oj+9W7Md; 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) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSjrH-0007pC-Bp; Sun, 06 Aug 2023 15:56:11 -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 1qSjrE-0007mL-AW for guix-patches@gnu.org; Sun, 06 Aug 2023 15:56:09 -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 1qSjrB-0006QD-6L for guix-patches@gnu.org; Sun, 06 Aug 2023 15:56:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSjrB-0003pT-2Q for guix-patches@gnu.org; Sun, 06 Aug 2023 15:56:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65118] [PATCH 9/9] gnu: Add nsq. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Aug 2023 19:56: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.169135175414647 (code B ref 65118); Sun, 06 Aug 2023 19:56:05 +0000 Received: (at 65118) by debbugs.gnu.org; 6 Aug 2023 19:55:54 +0000 Received: from localhost ([127.0.0.1]:60058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSjr0-0003o5-7d for submit@debbugs.gnu.org; Sun, 06 Aug 2023 15:55:54 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:62738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSjqv-0003mI-Sb for 65118@debbugs.gnu.org; Sun, 06 Aug 2023 15:55:50 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe1d9a8ec6so28263185e9.1 for <65118@debbugs.gnu.org>; Sun, 06 Aug 2023 12:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691351744; x=1691956544; 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=WeJSd80SmUIV0ECgTL2W2G5d+iVYc1o0wMYde0s0/Ek=; b=Oj+9W7MdEAWXOqX0l1vGB7Ehk2YiuCjimatyEhM3BviLbN+ax5EBLRMba8Y3PEnqfL aj8432pJ6oYf6w++GKJDhevtPBr0dqqbe7sHnfpOwDgny1MM+OD1lDVjQdXVuEmMWuRp Fp/2AFBDr/7e6aatm7Yrl2GoD5XQT3TC6HAiDHEeVmolk7z4jyosrueZ/2QvEkLQ/iZw ebfegrkIREEFI92w+BaOPgeuoIyKzH7cgWcHB7hswsIWnGE+Rq3dUY/FtiJGGS1dByoP pEokqZ70uirYhkRghsDagBczcZqng9rwfazIVf9FokYhwktTkaPHA3/dTckrDQjywBdl m5cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691351744; x=1691956544; 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=WeJSd80SmUIV0ECgTL2W2G5d+iVYc1o0wMYde0s0/Ek=; b=XdJkSrpTmMtxG8yITHYMK1H2KN19vDJo27iU7LGAR3CPPcw0h/VjT/5Z9i2+U+jGAI 3pcBfUeZ5VCUuTkqGeMMslBFRv0+XevJAR7W1CD4CgrZwUeMt+9qfizdKzHgq3th1pqf /dH4Vtvf7FG8iu0YYw1K41qDl9XYC23cl/EcSXgiL4yLdaiLkIuXilvnvMtXBLA2Kwzq PM33MNDEFi4iRZmCZ29+wlWdT1HqBTlIKIUQ+DTGYy73+chY+OJLB3zpnr/pVZ6zjCkr 7RbG/iZBL99+Cear/mFex1RdEttEGd80HAHf1IcPSo1zt4dt536QMlfr0DMlNDx7vnW3 q8nA== X-Gm-Message-State: AOJu0Yz4NX8QZT68TIeP3T3H9kLtjXa1k6D0j5Dxvo7orupqrgQruoRE DZTLRktSWyxhmz8KJ2yQ92rqALIoxIkqww== X-Google-Smtp-Source: AGHT+IHLcJolwoXs0a/5vYvFeDS2drRbiTw7DL686VRU/JjmwZuBNf/w1FtOMis/7JeSbxSKp09H1w== X-Received: by 2002:adf:ed82:0:b0:314:1f0:5846 with SMTP id c2-20020adfed82000000b0031401f05846mr3829787wro.19.1691351744263; Sun, 06 Aug 2023 12:55:44 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id u16-20020adfdb90000000b003175a994555sm8481947wri.6.2023.08.06.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Aug 2023 12:55:43 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 6 Aug 2023 20:55:36 +0100 Message-Id: <8520b8137aea74779901aa314e26e2b635eeadb9.1691350701.git.sharlatanus@gmail.com> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 2F2CD5B8A4 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -2.05 X-Spam-Score: -2.05 X-TUID: IQ1YClGTIYZG * gnu/packages/high-availability.scm (nsq): New variable. --- gnu/packages/high-availability.scm | 87 ++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 11ff8014cf..9763a04b21 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,90 @@ (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 (string-prefix? "x86_64-linux" + (or (%current-system) + (%current-target-system))) + (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-mreiferson-go-svc + 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 with no SPOF +@item horizontally scalable (no brokers, seamlessly add more nodes to the +cluster) +@item low-latency push based message delivery (performance) +@item combination 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 integrates with statsd for realtime instrumentation +@item robust cluster administration interface (nsqadmin) +@end itemize") + (license license:expat))) + (define-public corosync (package (name "corosync") -- 2.40.1