From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcPYV-0001Tc-Uu for guix-patches@gnu.org; Thu, 27 Dec 2018 01:54:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcPYQ-0001y2-Kj for guix-patches@gnu.org; Thu, 27 Dec 2018 01:54:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcPYQ-0001xQ-HX for guix-patches@gnu.org; Thu, 27 Dec 2018 01:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcPYQ-00024t-C9 for guix-patches@gnu.org; Thu, 27 Dec 2018 01:54:02 -0500 Subject: [bug#33883] [PATCH] gnu: Add ocaml-yojson. Resent-Message-ID: Received: from eggs.gnu.org ([208.118.235.92]:60418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcPXu-0000nv-L3 for guix-patches@gnu.org; Thu, 27 Dec 2018 01:53:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcPXp-0001PA-LL for guix-patches@gnu.org; Thu, 27 Dec 2018 01:53:30 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcPXp-0001Gh-EM for guix-patches@gnu.org; Thu, 27 Dec 2018 01:53:25 -0500 Received: by mail-wr1-x435.google.com with SMTP id p4so17350196wrt.7 for ; Wed, 26 Dec 2018 22:53:18 -0800 (PST) Received: from glht-x240.gmail.com ([80.12.58.176]) by smtp.gmail.com with ESMTPSA id k15sm44641246wru.8.2018.12.26.22.53.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Dec 2018 22:53:16 -0800 (PST) From: Gabriel Hondet Date: Thu, 27 Dec 2018 07:25:12 +0100 Message-ID: <87pntnwjdx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33883@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/packages/ocaml.scm (ocaml-yojson): New variable. =2D-- gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 4cfd203bd..6a16f0729 100644 =2D-- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5085,3 +5085,42 @@ functionality but allows implementations several tim= es faster (4 times faster than yojson), with 25-35% space savings.") (license license:bsd-3))) =20 +(define-public ocaml-yojson + (package + (name "ocaml-yojson") + (version "1.4.1") + (home-page "https://github.com/ocaml-community/yojson") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append home-page ".git")) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nwsfkmqpyfab4rxq76q8ff7giyanghw08094jyrp275v99zdjr9")))) + (build-system ocaml-build-system) + (inputs + `(("biniou" ,ocaml-biniou) + ("ocaml-easy-format" ,ocaml-easy-format) + ("cppo" ,ocaml-cppo))) + (native-inputs + `(("jbuilder" ,ocaml-jbuilder))) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (invoke "jbuilder" "install" + (string-append "--prefix=3D" + (assoc-ref %outputs "out")))))))) + (synopsis "Low-level JSON library for OCaml") + (description "Yojson is an optimized parsing and printing library for = the +JSON format. It addresses a few shortcomings of json-wheel including 2x +speedup, polymorphic variants and optional syntax for tuples and variants. +@code{ydump} is a pretty printing command-line program provided with the +yojson package. The program @code{atdgen} can be used to derive OCaml-JSON +serializers and deserializers from type definitions.") + (license license:bsd-3))) =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlwkdtoACgkQMbyBBfZZ 1CXhJxAAgIky+e1qglcVvV7Sbj8zE1+vxQZn4FL1gDWCnCwETTq99CUNfB2f2AC7 ZvQ5ktxGwclc2rgkxjHdGdIVPCL5yUOUGw5U2sJpnuuIl9vMPtnZMivwhBA/lNB8 FouGju6/7gqYwpV7lf0mnxVPmErtiIAvM1pK3rxOiR4Y8Y6UPyoYNR9zUXYE5gO7 VD4ABtdMqc+AhMXqxv5VA3UtwHDQ4RjLCdovtGhUilNlrrIuWn34GZZps5uJoonm 7+c10Ws4vUeVbEKZZk3yrProBpRVvfVHo3+BMGZXRC38pgBhGZUfaNmPgGftJiPc YuzCQAzFVfnYac5iNLy/Gl0umnkkekKZLEhRdXAS/nGMi3HDKpEsHxyVBimQg7YQ +JDrtlWcb7FrHXox1jNntav+ls7Cj0R10UNOK7/rZvkJ5nomQqCx3vS1RZH+wc5q Ms6m9KwDwl5Eb69Ere8J64O3iYLxmVesK++zif3Zf0LHSqXyW0vw5oQwvyhO27WP P/25ncR0Waz4qNA6upN/I74Uf2NDl6lPv6W2MiK4r3rtJoqgqAsQAi/dE2SHqaM3 ufLW1SMMQKoCR2yPvg6wsbKlfLTr7VJSFPGVBR7Fb+8s3mTxiMxJVMlehc4+vqCk mIPf96TZI2F4V6Y1KlplrBUteh5spOHBoBsiIp3OAQzZT856fXw= =P+d1 -----END PGP SIGNATURE----- --=-=-=--