summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRyan Prior <rprior@protonmail.com>2020-12-01 04:10:32 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-08 09:26:46 +0000
commitab58b2cc32068fc9e5f0a7c7ae112349943b7dfd (patch)
tree64b1b3666c824e461b1790d139a9e83ebeee5a27 /gnu
parentb5c51ae0864e395f692fd78aa723109856914fff (diff)
downloadguix-ab58b2cc32068fc9e5f0a7c7ae112349943b7dfd.tar.gz
gnu: Add cjson.
* gnu/packages/javascript.scm (cjson): New variable.

Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/javascript.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index ac9fbfea60..48bde160cd 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -31,10 +31,31 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system trivial)
   #:use-module (guix build-system minify)
   #:use-module (guix utils))
 
+(define-public cjson
+  (package
+    (name "cjson")
+    (version "1.7.14")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/DaveGamble/cJSON")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 "1rlnailhjm180zb6pc17jwphjwivw8kfpqgixjfgq4iyryq46sah"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags '("-DENABLE_CJSON_UTILS=On")))
+    (home-page "https://github.com/DaveGamble/cJSON")
+    (synopsis "JSON parser written in ANSI C")
+    (description "This library provides a portable embeddable JSON parser.")
+    (license license:expat)))
+
 (define-public font-mathjax
   (package
     (name "font-mathjax")