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

From: Miguel Ángel Moreno <[email-masked]>
Date: Sun, 11 Feb 2024 22:06:37 +0100

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

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

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1c95cc9393..26d4d1b113 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -11935,6 +11935,60 @@ (define-public go-maunium-net-go-maulogger
     (description "A logger in Go.")
     (license license:mpl2.0)))
 
+(define-public go-mau-fi-libsignal
+  (package
+    (name "go-mau-fi-libsignal")
+    (version "0.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/tulir/libsignal-protocol-go")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0zcsjy07b1m3gn9zmhv27gz9pqk2kpl3gxcqs9c5wygl1y9m09l5"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "go.mau.fi/libsignal"
+       #:unpack-path "go.mau.fi/libsignal"))
+    (propagated-inputs
+     (list
+      go-filippo-io-edwards25519
+      go-github-com-gorilla-websocket
+      go-golang-org-x-crypto
+      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-messageset
+      go-google-golang-org-protobuf-internal-encoding-defval
+      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))
+    (home-page "https://github.com/tulir/libsignal-protocol-go")
+    (synopsis "Go implementation of the Signal protocol for WhatsApp")
+    (description "Libsignal-protocol-go is a Go implementation of the Signal
+Client Protocol.")
+    (license license:gpl3)))
+
+
 ;;;
 ;;; 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