summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-07 20:08:22 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-13 12:40:54 +0100
commit2df695b766dec51942a65b200f995c87b7d5a2cf (patch)
tree901a50e46666cc0246469ead1632e85c6ca9e42f /gnu
parent79d2e9af5c64c787646e55f67f238719befa7061 (diff)
gnu: Add go-github-com-schollz-peerdiscovery.
* gnu/packages/golang-web.scm (go-github-com-schollz-peerdiscovery): New variable. Change-Id: I6a5a29446e8212cecfe313d36e5d2c59bbf45232
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-web.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index cdb180098ca..c1cf6b7de9b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10120,6 +10120,39 @@ information or even the peer of a VETH interface.")
"Package jsonschema provides json-schema compilation and validation.")
(license license:asl2.0)))
+(define-public go-github-com-schollz-peerdiscovery
+ (package
+ (name "go-github-com-schollz-peerdiscovery")
+ (version "1.7.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/schollz/peerdiscovery")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ygdcz1zxahy7h0n1xqgfd97sklaidvqiw2axjh5mzjjrrf30dm5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:tests? #f ;they require network setup
+ #:import-path "github.com/schollz/peerdiscovery"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "examples")))))))
+ (propagated-inputs
+ (list go-golang-org-x-net))
+ (home-page "https://github.com/schollz/peerdiscovery")
+ (synopsis "Local peer discovery using UDP multicast")
+ (description
+ "This package implements a functionality for cross-platform thread-safe
+local peer discovery using UDP multicast.")
+ (license license:expat)))
+
(define-public go-github-com-sebest-xff
(package
(name "go-github-com-sebest-xff")