From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cMRjAyg4UGLRJgEAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 15:27:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OKgaACg4UGLktQAAauVa8A (envelope-from ) for ; Fri, 08 Apr 2022 15:27:04 +0200 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 7EC861521A for ; Fri, 8 Apr 2022 15:27:03 +0200 (CEST) Received: from localhost ([::1]:35998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncodi-0007Z7-Nn for larch@yhetil.org; Fri, 08 Apr 2022 09:27:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncoat-0002NX-7A for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncoas-0001Qj-Po for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncoas-0007tN-Ko for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53882] [PATCH v2 13/25] gnu: Add ocaml-ppx-bin-prot. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 13:24:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53882 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53882@debbugs.gnu.org Cc: Julien Lepiller Received: via spool by 53882-submit@debbugs.gnu.org id=B53882.164942422930144 (code B ref 53882); Fri, 08 Apr 2022 13:24:06 +0000 Received: (at 53882) by debbugs.gnu.org; 8 Apr 2022 13:23:49 +0000 Received: from localhost ([127.0.0.1]:34262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncoab-0007q2-04 for submit@debbugs.gnu.org; Fri, 08 Apr 2022 09:23:49 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:43873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncoaP-0007m5-3Q for 53882@debbugs.gnu.org; Fri, 08 Apr 2022 09:23:38 -0400 Received: by mail-wm1-f49.google.com with SMTP id m67-20020a1ca346000000b0038e6a1b218aso5552589wme.2 for <53882@debbugs.gnu.org>; Fri, 08 Apr 2022 06:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tc4+nvws21rYmo9rGHp397Id9+YFKbxzZR5cwvia4Po=; b=mlPA06sFwLX0ELVmX60zKCbOm7MaBrRV0sl3VAdGWAnsyqRcORvseuu5xneC9wogO7 8f5wqG2K4XEDPDM0F71qBJGwpLVoWnzG1mNjtH72P1O6jRY44g4+eZZ9SN+VwpB/9odx iRmSFNWJsWQVveAIEX6HGud3VeY2mpX62S7l3BnpB5d+EWFYAWHFEbNjTkyprLgex6+T L15ppsLb5BKB0wavf2tT+ExUG4jUX92JOb1UrsbnmmMOx4bJTrO5lv+aTSHgvIxzW42Z deX6UzyfbD28b0ernyD1otI35H68kqAosKY2WGGaI2cgMw4wWAaei809KPff6M0CnfoP 6sow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tc4+nvws21rYmo9rGHp397Id9+YFKbxzZR5cwvia4Po=; b=l7+UYe37SiJge+D3EFzytzW7G3XfGbU/YDlZTuQubTPtRIIXBOiuOnCLmTIcCVmMYo xeywyVvwgsicTZSnrH21IPaBWE8U3585gUzy3TyynZkpcW96GRvXYAJnmOcEL9PpXyHd 7ylthhRKIfi00ngYpinsRsL15wZ+Vns9YM0xn3laL3bIWdgWsGP038Sc34FhLw1OSjPg zNiy/kyI3QHW/vbLWB2Go1yxwU6shajTC2xV6FeI0AX3q/3MT2492xe1zC7yssnUtCm3 1NdM3FjH0t8OgXZIWYVkoSXw7y/ehk1YyvCmBMjpbaCwUIFGFqIaMfzoEUFtKwKbIDKl A9WA== X-Gm-Message-State: AOAM530QHbfkzG//mk8zaWzjpp0e9uaTX+gbGkW5mFIZPBjYO8CWOHYv GXz2P0Xvlk0Q9CT5d4U05JZHW1I4uL4= X-Google-Smtp-Source: ABdhPJxGeyBSaEz3CmStbxdwqQjqkzVvVFDnr4bQCCvehzME8lxKx0L2mF5zXigXGTkuoEELIoxtZA== X-Received: by 2002:a1c:218b:0:b0:38e:aa07:62a8 with SMTP id h133-20020a1c218b000000b0038eaa0762a8mr1630833wmh.172.1649424211576; Fri, 08 Apr 2022 06:23:31 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z3-20020a1cf403000000b0037d1f4a2201sm10108954wma.21.2022.04.08.06.23.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 06:23:31 -0700 (PDT) From: zimoun Date: Fri, 8 Apr 2022 15:22:53 +0200 Message-Id: <20220408132305.3301350-13-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220408132305.3301350-1-zimon.toutoune@gmail.com> References: <20220408132305.3301350-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649424423; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=tc4+nvws21rYmo9rGHp397Id9+YFKbxzZR5cwvia4Po=; b=Yp3TJ5TTKEsk908MfUXvT45ouxbVYj9lQDCabkc30nlm+qMdi4vzXZCE0+3gB87leefgsn ZAKpKYyct8CxyUoHysyQJxQBGa7kxw0ItrFI4DWNSB2AEjG2OHWn57Zpq5w7nl25CFGPju dwwLrHXDl83f8sexGdwz7vOYFDoXqALH1iB/2fGwnRD3Zug4NGV7B1UPh4FTPfxZ4mq4C8 W+zjmID8cNX6tV3jMSiuER+Tn4nrKbfj32ZeXLokKSMgVODqNmFYHJ4rdJUyAUhRQdXIkT obrRc/uiv5ltJLDjM7h1K97QBj32Odyig1oEgI0QLxTfZV+yDDHuqjhkCSbxNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649424423; a=rsa-sha256; cv=none; b=PDVO8oGHqTXwY/MTroS0hQMRvl+7Jks/mt/V+kWYgheCkFmJkjTIEE70BZZFQdna0MExYg RQdgLxg3y9cC1feCDzzGnfGegW8gApZzZNX6o9q7Jtst0fNe08wmaIu+5X9sqPWTgVFaWV SWvzWxKAxNgkHyc0gmafgiNqfKcGH2hMXG52ybXnLW68k7ryQtWZ9Lv5hPN3maCCbmssfJ 6LXt7F5rq7l/rscxfH2NQp0dBCYXjLmh49LYtNyZEV/LsNARVwaEGyCprj5qDxnyUdOs7d l8IENZ790peOwN4eGceCWvgpbt91jzKqWwd5kJyEQ99mkPbccTZkBSvBGvnTZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mlPA06sF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mlPA06sF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7EC861521A X-Spam-Score: 6.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: uzabaHL48qia From: Julien Lepiller * gnu/packages/ocaml.scm (ocaml-ppx-bin-prot): New variable. (ocaml4.07-ppx-bin-prot): Inherit from it. --- gnu/packages/ocaml.scm | 64 ++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index fbe07fbb21..14e945df56 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6423,39 +6423,55 @@ (define-public ocaml4.07-ppx-base ("ocaml-ppxlib" ,ocaml-ppxlib))) (properties `((upstream-name . "ppx_base")))))) -(define-public ocaml4.07-ppx-bin-prot +(define-public ocaml-ppx-bin-prot (package - (name "ocaml4.07-ppx-bin-prot") - (version "0.11.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/janestreet/ppx_bin_prot") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz")))) + (name "ocaml-ppx-bin-prot") + (version "0.14.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/janestreet/ppx_bin_prot") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1qryjxhyz3kn5jz5wm62j59lhjhd1mp7nbsj0np9qnbpapnnr1zg")))) (build-system dune-build-system) (arguments ;; Cyclic dependency with ocaml-ppx-jane - `(#:tests? #f - #:ocaml ,ocaml-4.07 - #:findlib ,ocaml4.07-findlib - #:dune ,ocaml4.07-dune)) + `(#:tests? #f)) (propagated-inputs - `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base)) - ("ocaml-bin-prot" ,ocaml4.07-bin-prot) - ("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here)) - ("ocaml-migrate-parsetree" - ,(package-with-ocaml4.07 ocaml-migrate-parsetree)) - ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib)))) - (properties `((upstream-name . "ppx_bin_prot"))) + (list ocaml-base ocaml-bin-prot ocaml-ppx-here ocaml-ppxlib)) + (properties `((upstream-name . "ppx_bin_prot") + (ocaml4.07-variant . ,(delay ocaml4.07-ppx-bin-prot)))) (home-page "https://github.com/janestreet/ppx_bin_prot") (synopsis "Generation of bin_prot readers and writers from types") (description "Generation of binary serialization and deserialization functions from type definitions.") - (license license:asl2.0))) + (license license:expat))) + +(define-public ocaml4.07-ppx-bin-prot + (package-with-ocaml4.07 + (package + (inherit ocaml-ppx-bin-prot) + (version "0.11.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/janestreet/ppx_bin_prot") + (commit (string-append "v" version)))) + (file-name (git-file-name "ocaml4.07-ppx-bin-prot" version)) + (sha256 + (base32 + "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz")))) + (propagated-inputs + (list ocaml-base + ocaml-bin-prot + ocaml-ppx-here + ocaml-migrate-parsetree + ocaml-ppxlib)) + (properties '()) + (license license:asl2.0)))) (define-public ocaml4.07-ppx-jane (package -- 2.34.0