Subject: [bug#62284] [PATCH 36/70] gnu: Add go-mau-fi-libsignal-package.

From: conses <[email-masked]>
Date: Mon, 20 Mar 2023 00:45:14 +0100

* gnu/packages/golang.scm (go-mau-fi-libsignal-package): New procedure.
---
 gnu/packages/golang.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 03bfd2c054..0396c3f77b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -12368,6 +12368,15 @@ (define-public go-mau-fi-libsignal
 Client Protocol.")
     (license license:gpl3)))
 
+(define (go-mau-fi-libsignal-package suffix)
+  (package
+    (inherit go-mau-fi-libsignal)
+    (name (string-append "go-mau-fi-libsignal-" suffix))
+    (arguments
+     (substitute-keyword-arguments (package-arguments go-mau-fi-libsignal)
+       ((#:import-path path)
+        (string-append path "/"
+                       (string-replace-substring suffix "-" "/")))))))
 
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
-- 
2.39.1

-- 
Best regards,
conses