Subject: [PATCH v2 1/2] gnu: Add libomemo-c.

From: Liliana Marie Prikler <[email-masked]>
Date: Sat, 12 Apr 2025 21:17:39 +0200

* gnu/packages/messaging.scm (libomemo-c): New variable.
---
 gnu/packages/messaging.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index d127b90..6f9cca2 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -586,6 +586,30 @@ (define-public libsignal-protocol-c
 end-to-end encryption.")
    (license license:gpl3+)))
 
+(define-public libomemo-c
+  (package
+    (inherit libsignal-protocol-c)
+    (name "libomemo-c")
+    (version "0.5.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/dino/libomemo-c")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 "1xszd4cjrlwwsy19ri2ymqr676qpqqhxv3cw5zwch3lms68p51hy"))
+              (modules '((guix build utils)))
+              (snippet
+               #~(for-each delete-file
+                           (find-files "." "\\.pb-c\\.[ch]$")))))
+    (build-system meson-build-system)
+    (arguments (list #:configure-flags #~(list "-Dtests=true")))
+    (propagated-inputs (list protobuf-c))
+    (home-page "https://github.com/dino/libomemo-c")
+    (description "This package provides a fork of libsignal-protocol-c, used
+by Dino to provide OMEMO support.")))
+
 (define-public axc
   (package
     (name "axc")
--
libgit2 1.5.2