From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wA2QBi3X1WB4oAAAgWs5BA (envelope-from ) for ; Fri, 25 Jun 2021 15:16:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qEw2Ai3X1WCnLAAAbx9fmQ (envelope-from ) for ; Fri, 25 Jun 2021 13:16:29 +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 4F8102740C for ; Fri, 25 Jun 2021 15:16:28 +0200 (CEST) Received: from localhost ([::1]:47436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwlh5-0001Sn-DJ for larch@yhetil.org; Fri, 25 Jun 2021 09:16:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwlYx-0005NN-1T for guix-patches@gnu.org; Fri, 25 Jun 2021 09:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwlYw-0000Ek-OV for guix-patches@gnu.org; Fri, 25 Jun 2021 09:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwlYw-0003e7-Kj for guix-patches@gnu.org; Fri, 25 Jun 2021 09:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49203] [PATCH v2 2/2] gnu: Add ocaml-cohttp. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Jun 2021 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49203 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49203@debbugs.gnu.org Received: via spool by 49203-submit@debbugs.gnu.org id=B49203.162462646913982 (code B ref 49203); Fri, 25 Jun 2021 13:08:02 +0000 Received: (at 49203) by debbugs.gnu.org; 25 Jun 2021 13:07:49 +0000 Received: from localhost ([127.0.0.1]:45122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwlYj-0003dR-2r for submit@debbugs.gnu.org; Fri, 25 Jun 2021 09:07:49 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:35160 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwlYd-0003d1-Ou for 49203@debbugs.gnu.org; Fri, 25 Jun 2021 09:07:47 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1624626458; bh=0si1W+KMQRDLo5SH387EIYixyoHbUIe4t/WbCOEv3bc=; h=From:To:Subject:In-Reply-To:References:Date; b=LBw7A5swJA9zf6Xaio6vbKYybkjXhTZQKip4gldTmZ344u2+Pk3rExopJ995yBlYg KHErQXiLAZqi8al51hzQk20Dv1ohgd9TgjqvgExmJFc9BDibe0DcnNTsGktPdGe0G6 w0FiEX0WXVcPeRz/c2jwz0qAM6GxKUrm+Wqts3Us= In-Reply-To: References: Message-Id: Date: Fri, 25 Jun 2021 15:07:37 +0200 MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624626988; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=36wZg7TBSDcFjS+xFeAGQnShwRz2Bq31uDfea9I5cP0=; b=iVATAIY4+4f4zE6A4Im5Wg3qFLtO2UZtDHSAFKTGwx1KnPinqzwjW4dJng6/hMhTaoL/+V +r1gOARvGbHZ2am8RsuXFbckPPXO0Ws4GHgr0PBZccdp9D30y0S3zYrHv693EKb5eR0jTk AP3Wrtca7eGyYPUSS806szzPY1L5GRQugzmHS/tclMsi7cK+R/TrXjInjH+JpZ0RXm1iCH PQEZufzR0mABxW33v2uiODkg9C8jRdBL2xHryrMHuPOzL58GqfaScRq5N+6x+J+5yg53tO 7pDs9/748z406lSAGM98QFFgQJWtxlqbwTbTQhJyTW2u0ToQz5c+/IMUkPCZYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624626988; a=rsa-sha256; cv=none; b=hHKXtE+99RkNjpCZEYHMLaMIlmFVWdM2P2rr8bwqD7+ckIKNkeN0rB0pwIosSxhzDGGenf TPL9BA+6aD9nHEU7Dw5mWHxGWtzkTaG4MZINii8zy0sACybvP/awQ6L8eS+ry48fjeFRXT PkVUuaiykDNBTrXk0SPVwJeJW+fVbH2rDIb5qYdQpuo0XVOYzC+fzaMcOofk2gT49aNT4a LkhwUqbBiZEGynjQjetkRzW9jyeONRxqF8bAJ5LSXkRRL3EPdqmJ/j2iAI3CTmUjdpl/eE McIToYy5c7tzkl2CYXNAPdoupZzBlKzqNfsT63ewCUNClV9vpIW15a/5bZzMMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=LBw7A5sw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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-Migadu-Spam-Score: 1.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=LBw7A5sw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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-Migadu-Queue-Id: 4F8102740C X-Spam-Score: 1.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: UIzlsUcmjAJQ * gnu/packages/ocaml.scm (ocaml-cohttp): New variable. --- gnu/packages/ocaml.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 60a14ce87c..6d90044f4d 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7085,6 +7085,44 @@ up to OCaml 4.08.") (synopsis "RFC3986 URI/URL parsing library") (description "This package adds S-exp support to @code{ocaml-uri}."))) +(define-public ocaml-cohttp + (package + (name "ocaml-cohttp") + (version "4.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mirage/ocaml-cohttp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02d7417yy1i62by368w3wyw3756047pbrw69spcvz3cd1z7vqaci")))) + (build-system dune-build-system) + (arguments + '(#:package "cohttp" + #:test-target "cohttp_test/src")) + (propagated-inputs + `(("ocaml-re" ,ocaml-re) + ("ocaml-uri" ,ocaml-uri) + ("ocaml-uri-sexp" ,ocaml-uri-sexp) + ("ocaml-sexplib0" ,ocaml-sexplib0) + ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv) + ("ocaml-stringext" ,ocaml-stringext) + ("ocaml-base64" ,ocaml-base64))) + (native-inputs + `(("ocaml-fmt" ,ocaml-fmt) + ("ocaml-jsonm" ,ocaml-jsonm) + ("ocaml-alcotest" ,ocaml-alcotest))) + (home-page "https://github.com/mirage/ocaml-cohttp") + (synopsis "OCaml library for HTTP clients and servers") + (description + "Cohttp is an OCaml library for creating HTTP daemons. It has a portable +HTTP parser, and implementations using various asynchronous programming +libraries.") + (license license:isc))) + (define-public js-of-ocaml (package (name "js-of-ocaml") -- 2.32.0