From patchwork Thu Nov 16 19:15:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 56534 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 8207227BBEA; Thu, 16 Nov 2023 19:18:55 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BE0E727BBE2 for ; Thu, 16 Nov 2023 19:18:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3hsM-0004Om-Uy; Thu, 16 Nov 2023 14:18:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3hsL-0004N7-Mv for guix-patches@gnu.org; Thu, 16 Nov 2023 14:18:05 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3hsL-0004gU-EJ for guix-patches@gnu.org; Thu, 16 Nov 2023 14:18:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3hsL-0003pL-69 for guix-patches@gnu.org; Thu, 16 Nov 2023 14:18:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67019] [PATCH v2 10/16] gnu: Add node-flow-parser. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Nov 2023 19:18:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67019@debbugs.gnu.org Cc: Philip McGrath , Liliana Marie Prikler Received: via spool by 67019-submit@debbugs.gnu.org id=B67019.170016223214578 (code B ref 67019); Thu, 16 Nov 2023 19:18:05 +0000 Received: (at 67019) by debbugs.gnu.org; 16 Nov 2023 19:17:12 +0000 Received: from localhost ([127.0.0.1]:44605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3hrT-0003mx-RG for submit@debbugs.gnu.org; Thu, 16 Nov 2023 14:17:12 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3hr6-0003ii-94 for 67019@debbugs.gnu.org; Thu, 16 Nov 2023 14:16:49 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 58F155C021F; Thu, 16 Nov 2023 14:16:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 16 Nov 2023 14:16:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1700162203; x=1700248603; bh=UoMSbMCFbk o/f4S44kDxI4VO5nX5AwCbi/SD3SLPnWc=; b=aamYuSG/Cz0jgn86lnt5o8GYG9 JxecDd3XrVI7+L+bniWsswh1qipJoVY3mIQPoUG8I0fb+7aWV9+T5Mh14lYK06AP 4B69Rpj+l6svBX7cnVllTsH74J3QIptnj0xoQ89WF1EgMxCJzbnfeWebPnmhjFo7 B7qh4ZQqbbrHS1m7DHc9VEfZlBVaZ8rSpM+hYyy/QY5oX6ZNYcLl4JVReXr7o/pK uKa3OL2o4aUjVZVQD0MJJFAYoPofZwyMiWebCV85htq68ipPDvz8MffTRP/IgekU Oq+Yp9eM+y1Upj/ueiyti0iB6DiROsa14s7AAEQY/ZpVmcsk69kiMdqORJLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1700162203; x= 1700248603; bh=UoMSbMCFbko/f4S44kDxI4VO5nX5AwCbi/SD3SLPnWc=; b=u C3T4FI06iN6NAidao68gO7hM8YpngBBb+hH2yiV38IFrR75BDkrOrmjRHCOmm03I diCzQjdzhdD0xK34G/JdGaKjgC/pIfDxlyEWdX8j8RUFGA5bzOZzfTmTuQZNC9DI Yf0YBQkeRRsnnqX9geUFW+LPrlOILqoDuubdeeXplkTDUGFKrO2LJItdPNfTVDHe 0KB9mSb82i/yy8X0yYF6lVkPPALCr+8ktbM/Fb9/VqE1oDExewFsolsiDoNz1uRB 3KPXRR0adohdJnzHOSy5g9yeFDF6o1jkEkXeSBvt3asl26eOr+1zRybD8kvbHZY2 0Btf/hD/bw7G0KUJB0CFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefkedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefrhhhi lhhiphcuofgtifhrrghthhcuoehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtg homheqnecuggftrfgrthhtvghrnhepgffhgfffjeegudejvddvgedvheefveehvdffuedu udeivdfhgeeileehvdfhfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepphhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Nov 2023 14:16:42 -0500 (EST) From: Philip McGrath Date: Thu, 16 Nov 2023 14:15:48 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/web.scm (node-flow-parser): New variable. (ocaml-flow-parser)[description]: Mention it. --- gnu/packages/web.scm | 45 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b222c2ae40..b8646e9d0d 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -2030,9 +2030,52 @@ (define-public ocaml-flow-parser (synopsis "Parser for the Flow JavaScript type system") (description "Flow is a gradual type system for JavaScript. This package provides the Flow parser, which is an OCaml library that can also be compiled -to JavaScript.") +to JavaScript. To use the compiled parser with Node.js or NPM, see the Guix +package @code{node-flow-parser}.") (license license:expat))) +(define-public node-flow-parser + (package + (inherit ocaml-flow-parser) + (name "node-flow-parser") + (properties '()) + (outputs '("out")) + (propagated-inputs '()) + (native-inputs '()) + (inputs (list `(,ocaml-flow-parser "js"))) + (build-system node-build-system) + (arguments + (list + #:tests? #f ; need unpackaged dependencies + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'delete-workspace-file + (lambda args + ;; this workspace file causes NPM to try to install dependencies + ;; of other packages developed in this source repository + (delete-file "package.json"))) + (add-after 'delete-workspace-file 'chdir + (lambda args + (chdir "packages/flow-parser"))) + (add-after 'chdir 'unpack-generated-js + (lambda* (#:key inputs #:allow-other-keys) + (install-file + (search-input-file inputs + "share/javascript/flow/flow_parser.js") + ".") + (delete-file "Makefile"))) + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies + '("ast-types" + "colors" + "esprima-fb" + "minimist"))))))) + (synopsis "Parser for the Flow JavaScript type system") + (description "Flow is a gradual type system for JavaScript. This package +provides the Flow parser in its compiled-to-JavaScript form for use with +Node.js and NPM."))) + (define-public tinyproxy (package (name "tinyproxy")