diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-06-24 14:53:51 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-06-24 14:53:51 +0200 |
commit | f6ad09ae5af9f4781c5ecea2c598f4d4c26b29b6 (patch) | |
tree | a7eddfeb85d0d189cf9bde6e8a17c8bd08579252 /gnu/packages/web.scm | |
parent | 9ab7415329a8ec661c926ae6174ef1bddfb2c91c (diff) | |
download | patches-f6ad09ae5af9f4781c5ecea2c598f4d4c26b29b6.tar patches-f6ad09ae5af9f4781c5ecea2c598f4d4c26b29b6.tar.gz |
gnu: Move JSON-C to (gnu packages web).
* gnu/packages/pulseaudio.scm (json-c): Move to...
* gnu/packages/web.scm (json-c): ... here. New variable.
Diffstat (limited to 'gnu/packages/web.scm')
-rw-r--r-- | gnu/packages/web.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 8b48994592..6e94953bfe 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -73,6 +73,40 @@ related documentation.") (license l:asl2.0) (home-page "https://httpd.apache.org/"))) +(define-public json-c + (package + (name "json-c") + (version "0.12") + (source (origin + (method url-fetch) + (uri (string-append "https://s3.amazonaws.com/json-c_releases/releases/json-c-" + version ".tar.gz")) + (sha256 + (base32 + "0gwzic3ifg2d0w32ya3agpxh8i083cgvf7kmc51cnbgqnfr02300")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Somehow 'config.h.in' is older than + ;; 'aclocal.m4', which would trigger a rule to + ;; run 'autoheader'. + (set-file-time "config.h.in" + (stat "aclocal.m4")) + + ;; Don't try to build with -Werror. + (substitute* (find-files "." "Makefile\\.in") + (("-Werror") "")))))) + (build-system gnu-build-system) + (arguments '(#:parallel-build? #f + #:parallel-tests? #f)) + (home-page "https://github.com/json-c/json-c/wiki") + (synopsis "JSON implementation in C") + (description + "JSON-C implements a reference counting object model that allows you to +easily construct JSON objects in C, output them as JSON formatted strings and +parse JSON formatted strings back into the C representation of JSON objects.") + (license l:x11))) + (define-public libwebsockets (package (name "libwebsockets") |