From patchwork Thu Nov 9 16:26:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 56146 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 6F94227BBE2; Thu, 9 Nov 2023 16:29:11 +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=unavailable 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 706C827BBE9 for ; Thu, 9 Nov 2023 16:29:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r17tL-00084Q-Vz; Thu, 09 Nov 2023 11:28:28 -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 1r17tK-00082a-4X for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:26 -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 1r17tJ-0006a0-Sr for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:25 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r17tv-0004fB-3l; Thu, 09 Nov 2023 11:29:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67019] [PATCH 10/16] gnu: Add node-flow-parser. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Thu, 09 Nov 2023 16:29:03 +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 , Philip McGrath , Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Philip McGrath , Julien Lepiller , pukkamustard Received: via spool by 67019-submit@debbugs.gnu.org id=B67019.169954728717745 (code B ref 67019); Thu, 09 Nov 2023 16:29:03 +0000 Received: (at 67019) by debbugs.gnu.org; 9 Nov 2023 16:28:07 +0000 Received: from localhost ([127.0.0.1]:48513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17t0-0004bq-7f for submit@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:07 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:52397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17sw-0004a5-C8 for 67019@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:03 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 920193200BC9; Thu, 9 Nov 2023 11:27:22 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 09 Nov 2023 11:27:22 -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=fm3; t=1699547242; x=1699633642; bh=oXyW5k3LoW QwMqn5DQHK7XqcSzj5s6qU/KLP/eITOMM=; b=mHZ6m9VlkZHDxe2dipAckenwrm pgAaTLqGTUbCnIKTmo83cZFiMHjh9WxJMs9wPNCHM2H5I3MlFR+U7+eFG+zYIKAx /nTPyh8uMV21jWz+jzkppVTtbGZxm9LnaLlcft0L12BU/ue8IA/HRGFysKddzj7V ewOBnniCfZ3yjiCIzMZX3KPxbTLBuSSzSeEBxEHnQycSutEU4b0uEHrSNyQUZDP4 VcLPhOcdIzYsXOn7UueR+uHNfw+cL0ZaH9fHL9PgXq7fu6svVhCDo9TL8LmE2VOj RU37ElWPSqPSzw5o6RN67WiFbCenZYHb49Dcf935LDVkroeq+pKauXYjPGsQ== 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=fm3; t=1699547242; x= 1699633642; bh=oXyW5k3LoWQwMqn5DQHK7XqcSzj5s6qU/KLP/eITOMM=; b=k kEO45nPLXKUg1p3cD17DYqAiR32slHvIm8pNose0kZcunfVIca+u47RayHRWT1kT LJm/y9L9Q7lcjDnORbAh9HM5Nqez2j2ZfJ2t9d1zt1Mq/g6mxztrDdlv6pMhnx7H oMH0eCSUXRlWEHjT6xrAtfLL5Ek96JSXkr9YVgRNO/PbMrh95/eh2fh5UQB9dq7D yNMQNTuV6qW0RGkLzWttOHVcu+iNHzMOmaZlCEjIhqupU90S6llaUIboQMqfvr6e 6ttZwsPP5j6vtbGYEQIV4TzHvs33K2HlXdTbf06zuubEZsprwxL1qDWx0h12qtTv 5PQXSe57EIxmrusxbKgQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefrhhhilhhiphcuofgtifhrrghthhcuoehphhhilhhiphes phhhihhlihhpmhgtghhrrghthhdrtghomheqnecuggftrfgrthhtvghrnhepgffhgfffje egudejvddvgedvheefveehvdffueduudeivdfhgeeileehvdfhfeefnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpsehphhhilh hiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 11:27:21 -0500 (EST) From: Philip McGrath Date: Thu, 9 Nov 2023 11:26:32 -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 82923786f2..0ade9e46e3 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -2029,9 +2029,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")