unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH]: Add jansson.
@ 2015-01-30  9:51 Ricardo Wurmus
  2015-01-30 12:15 ` David Thompson
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2015-01-30  9:51 UTC (permalink / raw)
  To: guix-devel

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]: Add jansson.
  2015-01-30  9:51 [PATCH]: Add jansson Ricardo Wurmus
@ 2015-01-30 12:15 ` David Thompson
  0 siblings, 0 replies; 2+ messages in thread
From: David Thompson @ 2015-01-30 12:15 UTC (permalink / raw)
  To: Ricardo Wurmus, guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

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

Nice and simple package recipe.  I like when that happens. :)

Looks good to me.  Please push.  Thanks!

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-30 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30  9:51 [PATCH]: Add jansson Ricardo Wurmus
2015-01-30 12:15 ` David Thompson

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).