From 5cf298a20063d7a55ca34f08f1ae1b056247f1d5 Mon Sep 17 00:00:00 2001 From: Arthur Rodrigues Date: Fri, 7 Nov 2025 17:35:06 +0000 Subject: [PATCH] gnu: Add go-github-com-hashicorp-serf. * gnu/packages/golang-web.scm (go-github-com-hashicorp-serf): New variable. Change-Id: Ibe93bfc6403a1c2426ed9fe53ae21de050fe7a85 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-web.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9f605c750097a498e42ace838330f6b9e5735299..d98345c083b725dc72a4af0bf26e02ee9cc4ce73 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -5591,6 +5591,57 @@ standard @code{net/http} client library and exposes nearly the same public API.") (license license:mpl2.0))) +(define-public go-github-com-hashicorp-serf + (package + (name "go-github-com-hashicorp-serf") + (version "0.10.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hashicorp/serf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q9rismcpd5ci5zg6aq5b3y53x4j90fpdsvfc5jjh6hqfnxi0hzj")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:test-flags + #~(list "-skip" + (string-join + ;; panic: runtime error: invalid memory address or nil pointer + ;; dereference + (list "TestCommandRun_mDNS" + ;; [ERR] agent: Error invoking script ... fork/exec + ;; /bin/sh: no such file or directory + "TestScriptEventHandler" + "TestScriptUserEventHandler" + "TestScriptQueryEventHandler" + "TestSnapshotter_forceCompact" + ;; err: Unix syslog delivery error + "TestSyslogFilter") + "|")) + #:import-path "github.com/hashicorp/serf")) + (propagated-inputs + (list go-github-com-armon-circbuf + go-github-com-hashicorp-go-metrics + go-github-com-hashicorp-go-msgpack-v2 + go-github-com-hashicorp-go-syslog + go-github-com-hashicorp-logutils + go-github-com-hashicorp-mdns + go-github-com-hashicorp-memberlist + go-github-com-mitchellh-cli + go-github-com-mitchellh-mapstructure + go-github-com-ryanuber-columnize)) + (home-page "https://github.com/hashicorp/serf") + (synopsis "Service discovery and orchestration for Golang") + (description + "Serf is a decentralized solution for service discovery and orchestration +that is lightweight, highly available, and fault tolerant.") + (license license:mpl2.0))) + (define-public go-github-com-hashicorp-go-sockaddr (package (name "go-github-com-hashicorp-go-sockaddr")