diff options
author | Till Robin Zickel <trzickel@illegalaliensfrom.space> | 2025-01-08 13:13:33 +0100 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2025-01-12 12:19:31 +0800 |
commit | a430382144a9e3fb12bd981ee020fff3d29ac3b2 (patch) | |
tree | 64fe693e789f3cc9149b048cb817747c16851e3f /gnu | |
parent | 1f1b652e77acaad961834a6b8b11852d8104fe0a (diff) |
gnu: Add libvarlink.
* gnu/packages/serialization.scm (libvarlink): New variable.
Change-Id: I7b4bfe83dd893a6cf6b0e58486822a182fadbcbc
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/serialization.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 1a965103aaf..069722b91df 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -1036,3 +1036,41 @@ support libraries.") C++11. It provides a simple validation API that allows loading JSON Schemas, and validate documents loaded by one of several supported parser libraries.") (license license:bsd-2))) + +(define-public libvarlink + (package + (name "libvarlink") + (version "24") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/varlink/libvarlink") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "098jw9h48p2py6lwxyjrlzvv9zqvqgfsxc4pddfsviab65n9n5gw")))) + (build-system meson-build-system) + (native-inputs + (list python-minimal + glibc-utf8-locales)) ;needed for unit tests + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-/bin/sh + (lambda _ + (substitute* "lib/meson.build" + (("/bin/sh") + (which "sh"))))) + (add-after 'unpack 'patch-/usr/bin/env + (lambda _ + (substitute* "varlink-wrapper.py" + (("/usr/bin/env") + (which "env")))))))) + (home-page "https://varlink.org/") + (synopsis "Varlink C IPC library and command line tool") + (description + "This package provides the C implementation of the varlink +interface description protocol and its associated command line tool") + (license license:asl2.0))) + |