From patchwork Thu Aug 12 14:04:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 32074 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8EEDA27BC82; Thu, 12 Aug 2021 15:05:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0365E27BC78 for ; Thu, 12 Aug 2021 15:05:12 +0100 (BST) Received: from localhost ([::1]:48254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEBKZ-0006fz-1I for patchwork@mira.cbaines.net; Thu, 12 Aug 2021 10:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBKQ-0006fa-9K for guix-patches@gnu.org; Thu, 12 Aug 2021 10:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEBKQ-00035E-2o for guix-patches@gnu.org; Thu, 12 Aug 2021 10:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEBKP-0002kM-SK for guix-patches@gnu.org; Thu, 12 Aug 2021 10:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50024] [PATCH] gnu: Add ocaml-ppx-deriving. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Aug 2021 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50024 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50024@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162877706010503 (code B ref -1); Thu, 12 Aug 2021 14:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Aug 2021 14:04:20 +0000 Received: from localhost ([127.0.0.1]:39548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBJg-0002jH-AX for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:04:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:35730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBJb-0002j7-WB for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:04:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBJb-0006cY-QH for guix-patches@gnu.org; Thu, 12 Aug 2021 10:04:11 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:55346 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBJZ-0002fI-Fr for guix-patches@gnu.org; Thu, 12 Aug 2021 10:04:11 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1628777043; bh=VEtDcDb1oVr1tknL0gQoDR/kTJu4jKTtxkhkV1wZYzY=; h=From:To:Subject:Date; b=reo+G4rpOZYEPi4tlWbXHCJ5U5zQiP6d2oRnwaEX/jd7bV/N2CdE2kjDGb9j8+y4+ 6QOWOWsfX3UsQThx/RLaF727vJBd2b3Nx4rAMof/gcKYnU4cT+DDYeE7OFrmZ6SuR1 4AvoaIT4SRFAquh0Thcpg4YQ9Ny3yc8Ktdyt1p3c= Message-Id: <5b30f72701e120a621e1a904922ba5b23dff89c6.1628777020.git.public@yoctocell.xyz> Date: Thu, 12 Aug 2021 16:04:02 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 18 X-Spam_score: 1.8 X-Spam_bar: + X-Spam_report: (1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=0.391, PDS_OTHER_BAD_TLD=1.999, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocaml-ppx-deriving): New variable. --- gnu/packages/ocaml.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) base-commit: 8221cf834946ed65a12b88f2faf7b26a2d57db3a diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 112751ddec..7cc51a9883 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5012,6 +5012,37 @@ a more consistent API.") "0pqbp2wy5fgmc38irwvmj9nlcvclb1ix1mp4y7l39bgvvlz303h9")) (properties '())))) +(define-public ocaml-ppx-deriving + (package + (name "ocaml-ppx-deriving") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml-ppx/ppx_deriving") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1wqcnw4wi6pfjjhixpakckm03dpj990259za432804471a6spm2j")))) + (build-system dune-build-system) + (arguments + `(#:test-target ".")) + (propagated-inputs + `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers) + ("ocaml-ppxlib" ,ocaml-ppxlib) + ("ocaml-result" ,ocaml-result))) + (native-inputs + `(("ocaml-cppo" ,ocaml-cppo) + ("ocaml-ounit2" ,ocaml-ounit2))) + (properties `((upstream-name . "ppx_deriving"))) + (home-page "https://github.com/ocaml-ppx/ppx_deriving") + (synopsis "Type-driven code generation for OCaml") + (description + "This OCaml package provides common infrastructure for generating code based +on type definitions, and a set of useful plugins for common tasks.") + (license license:expat))) + (define-public ocaml-ppx-derivers (package (name "ocaml-ppx-derivers")