Subject: [bug#76324] [PATCH 1/6] gnu: sync: add libsearpc

From: flypaper <[email-masked]>
Date: Sun, 16 Feb 2025 11:38:44 +0200

* gnu/packages/sync.scm (libsearpc): New package.

Change-Id: Id581536d6d13033c33a7316568a18bf1520ccc77
---
 gnu/packages/sync.scm | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index a4d4e03b91..854cc075ea 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -69,7 +69,8 @@ (define-module (gnu packages sync)
   #:use-module (gnu packages shells)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages sqlite)
-  #:use-module (gnu packages tls))
+  #:use-module (gnu packages tls)
+  #:use-module (gnu packages web))
 
 (define-public nextcloud-client
   (package
@@ -600,3 +601,32 @@ (define-public rclone
 @end itemize")
     (home-page "https://rclone.org/")
     (license license:expat)))
+
+
+(define-public libsearpc
+  (let ((revision "0")
+        (commit "255d5dedd2b446b58e4b8ca97ed6c270b3921047")
+        (version "3.3"))
+    (package
+      (name "libsearpc")
+      (version (git-version version revision commit))
+      (home-page "https://github.com/haiwen/libsearpc")
+      (source
+       (origin
+         (method git-fetch)
+         (file-name (git-file-name name version))
+         (uri (git-reference
+               (url home-page)
+               (commit commit)))
+         (sha256
+          (base32 "1nrn7djyslszd26bg1yd5wdqyyjyh8hfc6zz8hwxk9bbdvjkpv9b"))))
+      (build-system gnu-build-system)
+      (license license:asl2.0)
+      (synopsis "RPC framework for server and client")
+      (description
+       "A simple C language RPC framework (including both server side & client side).")
+      (arguments
+       (list
+        #:configure-flags '(list "--disable-compile-demo")))
+      (inputs (list glib jansson python))
+      (native-inputs (list autoconf automake libtool pkg-config)))))
-- 
2.46.0