Subject: [bug#77770] [PATCH 1/2] gnu: Add libomemo-c.

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 14 Apr 2025 09:46:27 +0900

Hi,

Liliana Marie Prikler <[email-masked]> writes:

> * 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 26db072b4a..e98eef89f1 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.")))

nitpick: s/dino/Dino/, or 'by the @command{dino} command'.

-- 
Thanks,
Maxim