guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add json-parser.


From: guix-commits
Subject: 02/04: gnu: Add json-parser.
Date: Wed, 21 Nov 2018 14:24:02 -0500 (EST)

alexvong1995 pushed a commit to branch master
in repository guix.

commit 078e2edf1d3ce8e208dbb891ae662a0db3376c1e
Author: Alex Vong <address@hidden>
Date:   Mon Nov 12 02:23:27 2018 +0800

    gnu: Add json-parser.
    
    * gnu/packages/web.scm (json-parser): New variable.
---
 gnu/packages/web.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 73219c8..eeaaa85 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -28,6 +28,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <address@hidden>
 ;;; Copyright © 2018 Gábor Boskovits <address@hidden>
 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <address@hidden>
+;;; Copyright © 2018 Alex Vong <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -582,6 +583,37 @@ It aims to conform to RFC 7159.")
                    (("-Werror") ""))
                  #t))))))
 
+(define-public json-parser
+  (package
+    (name "json-parser")
+    (version "1.1.0")
+    (source (origin
+              ;; do not use auto-generated tarballs
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/udp/json-parser.git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ls7z4fx0sq633s5bc0j1gh36sv087gmrgr7rza22wjq2d4606yf"))))
+    ;; FIXME: we should build the python bindings in a separate package
+    (build-system gnu-build-system)
+    ;; the tests are written for the python bindings which are not built here
+    (arguments '(#:tests? #f))
+    (home-page "https://github.com/udp/json-parser";)
+    (synopsis "JSON parser written in ANSI C")
+    (description "This package provides a very low footprint JSON parser
+written in portable ANSI C.
+
address@hidden
address@hidden BSD licensed with no dependencies (i.e. just drop the C file 
into your
+project)
address@hidden Never recurses or allocates more memory than it needs
address@hidden Very simple API with operator sugar for C++
address@hidden itemize")
+    (license l:bsd-2)))
+
 (define-public qjson
   (package
     (name "qjson")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]