From db4bcfc18e95fa39851c72414261b19b25c49db0 Mon Sep 17 00:00:00 2001 From: Katherine Cox-Buday Date: Tue, 2 Jun 2020 15:24:59 -0500 Subject: [PATCH 2/5] gnu: Add libfastjson. * gnu/packages/c.scm (libfastjson): New variable. --- gnu/packages/c.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index d3820c88b2..307d8ca182 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -373,3 +373,35 @@ releases.") "A library which contains some essential string manipulation functions and more, like escaping special characters.") (license license:lgpl2.1))) + +(define-public libfastjson + (package + (name "libfastjson") + (version "0.99.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rsyslog/libfastjson.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qhs0g9slj3p0v2z4s3cnsx44msrlb4k78ljg7714qiziqbrbwyl")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (home-page "https://github.com/rsyslog/libfastjson") + (synopsis "Fast json library for C ") + (description + "libfastjson is a fork from json-c, and is currently under development. +The aim of this project is not to provide a slightly modified clone of json-c. +It's aim is to provide: a small library with essential json handling +functions, sufficiently good json support (not 100% standards compliant), and +be very fast in processing.") + (license + (license:non-copyleft + "https://github.com/rsyslog/libfastjson/blob/master/COPYING" + "It is a MIT license.")))) -- 2.26.2