From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CL9UKszydV/bZwAA0tVLHw (envelope-from ) for ; Thu, 01 Oct 2020 15:16:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iIHaJczydV8REQAAB5/wlQ (envelope-from ) for ; Thu, 01 Oct 2020 15:16:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6B5FB940416 for ; Thu, 1 Oct 2020 15:16:28 +0000 (UTC) Received: from localhost ([::1]:42222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNz00-0005QL-6x for larch@yhetil.org; Thu, 01 Oct 2020 09:51:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNyxO-0002gl-AH for guix-patches@gnu.org; Thu, 01 Oct 2020 09:49:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNyxK-0002yb-W6 for guix-patches@gnu.org; Thu, 01 Oct 2020 09:49:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNyxK-00021O-Uw for guix-patches@gnu.org; Thu, 01 Oct 2020 09:49:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43745] [PATCH 23/27] gnu: Add ocaml-csexp. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Oct 2020 13:49:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43745 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43745@debbugs.gnu.org Received: via spool by 43745-submit@debbugs.gnu.org id=B43745.16015601127556 (code B ref 43745); Thu, 01 Oct 2020 13:49:10 +0000 Received: (at 43745) by debbugs.gnu.org; 1 Oct 2020 13:48:32 +0000 Received: from localhost ([127.0.0.1]:34955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNywi-0001xj-6v for submit@debbugs.gnu.org; Thu, 01 Oct 2020 09:48:32 -0400 Received: from lepiller.eu ([89.234.186.109]:51936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNywT-0001sY-E6 for 43745@debbugs.gnu.org; Thu, 01 Oct 2020 09:48:24 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 9757fda9 for <43745@debbugs.gnu.org>; Thu, 1 Oct 2020 13:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=WA7Ey3jM2p3GOttpGMHbhC2cr nsElX+COULvaStlyPQ=; b=JDlVoRyq/u9O2QxaY5XsRfm41AecYrHMOBsqon6aj yaH9PQnJE1KIJz5v4A15FGOhUviFPgaNk4baX27wy2p77oxxdQS7iijP/F6eFduz /1cJjyTlP5v29Id8QcxmCuWDQ9t/ZYAApz+AzfvybrwJvhDOEAB4E83VHrCyOzVw hdDU2NmdoeOqGC7dLGyaPJVp5Jj7W4la7g3Fb57MidhynbsQUCirgQHnLtGfvCi5 MKuNkM+zcfIl2hzec1h9UptEXXQfFPnZZ//Y8cm0mwOeQUURO8Dg4efrrL2ByCSq LJ6grcM/j/gnadXMDF2prikr9adIMdvX6i/f51oVvZl5g== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 97c0c8f2 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <43745@debbugs.gnu.org>; Thu, 1 Oct 2020 13:48:13 +0000 (UTC) From: Julien Lepiller Date: Thu, 1 Oct 2020 15:41:29 +0200 Message-Id: <20201001134133.32105-23-julien@lepiller.eu> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201001134133.32105-1-julien@lepiller.eu> References: <20201001153909.296c8d3e@tachikoma.lepiller.eu> <20201001134133.32105-1-julien@lepiller.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=JDlVoRyq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: tQoLdHDKGXcH * gnu/packages/ocaml.scm (ocaml-csexp): New variable. --- gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index ee82f9ca32..55496f8ca4 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -1312,6 +1312,47 @@ following a very simple s-expression syntax.") (define-public ocaml4.07-dune (package-with-ocaml4.07 dune)) +(define-public ocaml-csexp + (package + (name "ocaml-csexp") + (version "1.3.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml-dune/csexp") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "190zppgvdjgghmrnx67ayzzk86qdjy3yn5fcrcw08wsh93384pl0")))) + (build-system dune-build-system) + (arguments + `(#:tests? #f; FIXME: needs ppx_expect, but which version? + #:phases + (modify-phases %standard-phases + (add-before 'build 'chmod + (lambda _ + (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*")) + #t))))) + (propagated-inputs + `(("dune" ,dune) + ("ocaml-result" ,ocaml-result))) + (home-page "https://github.com/ocaml-dune/csexp") + (synopsis "Parsing and printing of S-expressions in Canonical form") + (description "This library provides minimal support for Canonical +S-expressions. Canonical S-expressions are a binary encoding of +S-expressions that is super simple and well suited for communication +between programs. + +This library only provides a few helpers for simple applications. If +you need more advanced support, such as parsing from more fancy input +sources, you should consider copying the code of this library given +how simple parsing S-expressions in canonical form is. + +To avoid a dependency on a particular S-expression library, the only +module of this library is parameterised by the type of S-expressions.") + (license #f))) + (define-public ocaml-migrate-parsetree (package (name "ocaml-migrate-parsetree") -- 2.28.0