Subject: [bug#62284] [PATCH v2 60/71] gnu: Add go-mau-fi-whatsmeow.

From: Miguel Ángel Moreno <[email-masked]>
Date: Sun, 11 Feb 2024 23:08:01 +0100

* gnu/packages/golang.scm (go-mau-fi-whatsmeow): New variable.

Change-Id: I3dbf69d057c65e34580c17fe047f8b8895851bfc
---
 gnu/packages/golang.scm | 78 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 7d52b12c7d..ec13f64bc0 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12067,6 +12067,84 @@ (define-public go-mau-fi-libsignal-util-errorhelper
 (define-public go-mau-fi-libsignal-util-medium
   (go-mau-fi-libsignal-package "util-medium"))
 
+(define-public go-mau-fi-whatsmeow
+  (let ((commit "f0c1311920763e44a89add91926bdd49f6a566ac")
+        (revision "0"))
+    (package
+     (name "go-mau-fi-whatsmeow")
+     (version (git-version "0" revision commit))
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://github.com/tulir/whatsmeow")
+                     (commit commit)))
+               (file-name (git-file-name name version))
+               (sha256
+                (base32
+                 "098hkaw5pk1vw1fh62654zm4f9h3plyamg3iq610g72zz35ndwlb"))))
+     (build-system go-build-system)
+     (arguments
+      (list
+       #:go go-1.19
+       #:import-path "go.mau.fi/whatsmeow"))
+     (propagated-inputs
+      (list
+       go-golang-org-x-crypto
+       go-github-com-gorilla-websocket
+       go-google-golang-org-protobuf-encoding-prototext
+       go-google-golang-org-protobuf-encoding-protowire
+       go-google-golang-org-protobuf-internal-descfmt
+       go-google-golang-org-protobuf-internal-descopts
+       go-google-golang-org-protobuf-internal-detrand
+       go-google-golang-org-protobuf-internal-encoding-defval
+       go-google-golang-org-protobuf-internal-encoding-messageset
+       go-google-golang-org-protobuf-internal-encoding-tag
+       go-google-golang-org-protobuf-internal-encoding-text
+       go-google-golang-org-protobuf-internal-errors
+       go-google-golang-org-protobuf-internal-filedesc
+       go-google-golang-org-protobuf-internal-filetype
+       go-google-golang-org-protobuf-internal-flags
+       go-google-golang-org-protobuf-internal-genid
+       go-google-golang-org-protobuf-internal-impl
+       go-google-golang-org-protobuf-internal-order
+       go-google-golang-org-protobuf-internal-pragma
+       go-google-golang-org-protobuf-internal-set
+       go-google-golang-org-protobuf-internal-strs
+       go-google-golang-org-protobuf-internal-version
+       go-google-golang-org-protobuf-proto
+       go-google-golang-org-protobuf-reflect-protoreflect
+       go-google-golang-org-protobuf-reflect-protoregistry
+       go-google-golang-org-protobuf-runtime-protoiface
+       go-google-golang-org-protobuf-runtime-protoimpl
+       go-mau-fi-libsignal-cipher
+       go-mau-fi-libsignal-ecc
+       go-mau-fi-libsignal-groups
+       go-mau-fi-libsignal-kdf
+       go-mau-fi-libsignal-keys-chain
+       go-mau-fi-libsignal-keys-identity
+       go-mau-fi-libsignal-keys-message
+       go-mau-fi-libsignal-keys-prekey
+       go-mau-fi-libsignal-keys-root
+       go-mau-fi-libsignal-keys-session
+       go-mau-fi-libsignal-logger
+       go-mau-fi-libsignal-protocol
+       go-mau-fi-libsignal-ratchet
+       go-mau-fi-libsignal-serialize
+       go-mau-fi-libsignal-session
+       go-mau-fi-libsignal-signalerror
+       go-mau-fi-libsignal-state-record
+       go-mau-fi-libsignal-state-store
+       go-mau-fi-libsignal-util-bytehelper
+       go-mau-fi-libsignal-util-errorhelper
+       go-mau-fi-libsignal-util-keyhelper
+       go-mau-fi-libsignal-util-medium
+       go-mau-fi-libsignal-util-optional))
+     (home-page "https://github.com/tulir/whatsmeow")
+     (synopsis "Go library for the WhatsApp web multidevice API")
+     (description "@code{whatsmeow} is a Go library for the WhatsApp web
+multidevice API.")
+     (license license:mpl2.0))))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.41.0

-- 
Best regards,
Miguel Ángel Moreno