unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: guix-devel <guix-devel@gnu.org>
Subject: [PATCH]: Add jansson.
Date: Fri, 30 Jan 2015 10:51:00 +0100	[thread overview]
Message-ID: <idj386siol7.fsf@bimsb-sys02.mdc-berlin.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

Hi Guix,

Attached is a patch to add the jansson JSON library to
gnu/packages/web.scm.

~~ Ricardo


[-- Attachment #2: 0001-gnu-Add-jansson.patch --]
[-- Type: text/x-patch, Size: 1749 bytes --]

From 55b0351c9f2d0c804cc6f02984edbd187b84e750 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Fri, 30 Jan 2015 10:47:23 +0100
Subject: [PATCH] gnu: Add jansson.

* gnu/packages/web.scm (jansson): New variable.
---
 gnu/packages/web.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 554f2a3..7abed9d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2013 Aljosha Papsch <misc@rpapsch.de>
 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -142,6 +143,26 @@ and as a proxy to reduce the load on back-end HTTP or mail servers.")
     ;;     except for two source files which are bsd-4 licensed.
     (license (list l:bsd-2 l:expat l:bsd-3 l:bsd-4))))
 
+(define-public jansson
+  (package
+    (name "jansson")
+    (version "2.7")
+    (source (origin
+             (method url-fetch)
+             (uri
+              (string-append "http://www.digip.org/jansson/releases/jansson-"
+                             version ".tar.gz"))
+             (sha256
+              (base32
+               "1mvq9p85khsl818i4vbszyfab0fd45mdrwrxjkzw05mk1xcyc1br"))))
+    (build-system gnu-build-system)
+    (home-page "http://www.digip.org/jansson/")
+    (synopsis "JSON C library")
+    (description
+     "Jansson is a C library for encoding, decoding and manipulating JSON
+data.")
+    (license l:expat)))
+
 (define-public json-c
   (package
     (name "json-c")
-- 
1.9.3


             reply	other threads:[~2015-01-30  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30  9:51 Ricardo Wurmus [this message]
2015-01-30 12:15 ` [PATCH]: Add jansson David Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=idj386siol7.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).