From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EPsQL2EjtmHzEwEAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 17:29:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UK69KmEjtmGCDAAA1q6Kng (envelope-from ) for ; Sun, 12 Dec 2021 16:29:21 +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 3DD631E197 for ; Sun, 12 Dec 2021 17:29:21 +0100 (CET) Received: from localhost ([::1]:33216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwRiy-0002Mm-B0 for larch@yhetil.org; Sun, 12 Dec 2021 11:29:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRig-0002Me-RE for guix-patches@gnu.org; Sun, 12 Dec 2021 11:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwRig-00047Z-JI for guix-patches@gnu.org; Sun, 12 Dec 2021 11:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwRig-0000k3-Gk for guix-patches@gnu.org; Sun, 12 Dec 2021 11:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 30/43] gnu: Add node-file-uri-to-path. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Dec 2021 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 51838@debbugs.gnu.org X-Debbugs-Original-Cc: 51838@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393265222804 (code B ref 51838); Sun, 12 Dec 2021 16:29:02 +0000 Received: (at 51838) by debbugs.gnu.org; 12 Dec 2021 16:28:42 +0000 Received: from localhost ([127.0.0.1]:52978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwRiL-0000jA-SD for submit@debbugs.gnu.org; Sun, 12 Dec 2021 11:28:42 -0500 Received: from mout.gmx.net ([212.227.15.19]:58325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwRiJ-0000iv-Mf for 51838@debbugs.gnu.org; Sun, 12 Dec 2021 11:28:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1639326513; bh=9MSMKUcAaC90KZGg8ojAjh3/qLQM8rsxGX7AT4QgDlQ=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=jpbqHoy3d3eLBwxxNd2u11rN0F1yrrInZ6MPEezASSktJvRKFce3KigrUO1SP3Ugx ObPjhLLu1ambDSJvbldX5//m1JwfMWjiqCvydkQ01XSEL/01vZQyK1TMWJoQCYdKPk AuJ/8TV186rCqJjkq+kJq3XKj02Uli7DU8HpUpSc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1Mdeb5-1mNezY0KHJ-00ZeP9; Sun, 12 Dec 2021 17:28:33 +0100 References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-31-philip@philipmcgrath.com> User-agent: mu4e 1.6.10; emacs 27.2 From: Pierre Langlois Date: Sun, 12 Dec 2021 16:26:08 +0000 In-reply-to: <20211208202838.752542-31-philip@philipmcgrath.com> Message-ID: <87y24pwzww.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:g5pQA4MkmCPmsbqgAOIVvksoCILt9C5ycOXKgzmp6NiD1kvMvlX X13X6mz12mSvCsYu0UTRwU5h6oMrzHkAYg7ZBJl4av6k9mtorBpMq+i/pHwu4EokdP8/4WK SryUCrZ4v/TBatjWxO0iSd5uJ418JBkkIxCBoL4oTX8zRYf0RYo0o1oM2RROwtU6L47GPGn 8PD1WBD9jZKDIZosU1sQQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:+woC65SWx1U=:bxoGcmDRIOjm7gTzq6pIg6 BfOb8QZpYWYYaXzhoDz4dBhLEH506za1Wdc0JI/kNnM5ZFA7TaAb5shb79MlWRdDpxM90koQf WslmNDMdbyWXOwPHW5v9OGAwhPmRzq7LT45UL+vbxAYyVRwo3yCelsfLRwieDxre+actCBOQq Y7ht8UuZSFTfh8Ovwd9JMqEm45rdIhdLv6R0pg4Cm/IjzZGe7AI4Z1aHae13EUyZzlhcpteh2 njkGkATuQo8dBdVDFe+4869C2G/pVnWkruA9G7vbZHpNisWTXBkPNaGJ3yhS0z6bRSBlo+DLZ BFxqCboh6apELueKGKOXj9CXtBbg2i+IbKS2jJoQR3kARCroXek43izV1MtcjqB3v1j8QcWbX 5YR2CP2k542Z1vIF6LBLuerhUtq6vnF0F3Sz0XsLBWSG7M6CXp0UXxhLmDCSvPRZTabJEFCWb F5xZx/Reo47JhmO1yw1f8yGRGqwpH0YJNqzem6vXIDB2+wnIDDl57JTjDWRhCQlwLH/NnOSBc O3E4A7dd9YH8/AqlAhyUqSmnUmnaAqVlh28YKYbzdQIB7y/Du3qRwIG1Xl0CX1jOr5NlQLpH/ aBTOXKl3ZMI3AvG1JhNdcEiiUUj3R9JI3L21lpVGBT082Bq1m5tK1tjQIWzNKcf5iC92HJixT swePDw5WemC/1InQYsLC9kBbJxVOy2jzjfy0Vm6bCSjxJnAT0be/pMaeixOt2I1HB9IS06rQn SaEnMEeYVU+oL/ZJiKr0dd2gv7Yzc8Yg4Q+N3HWlNwc6KcnJ1fpfaBJtH0i9NN7WfvA8whvE5 UGCOOns8WYOTB8Y3Qd+f/lbFCBvfDsQFJ6Np96VrjvRMVSrxb//Sdo4XtxLzamYy4ZLXG62wN eTtbetI1+D0GDWkVgJlaoyomC6KM93Czt7dJBqE7485mzxWwleUulfeEkFPmM5ZKdMNPwwDWt uPtlORBRHy1U8rFAWqO87LqJ/s3+ctH6Ep2kHY8/4NTUJ9QrPHKPOs1LYb63sluGB0qm1yVb+ xJqVz/WC5hr4ToNkgM+3P3fvG1ItKEmgvcVSPeGdW1DXrqWub+biFxFlHzLHS5xZxXfKpxCAm uOwy/oECUfijVE= 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=1639326561; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=wjNcUCv+lkWdUMmOjfHqzqFztfNBFofK08DrqaIRYmM=; b=SlMJEy0EGCjNo4tUC3o+Yzqb1wPuRwFJzKZ6g1YmnbE4MADsyEg5WNQ5I+p+g/VQB92Em5 vD6Zfq289SJiN6wTfGWCdIgHAZXChMZtfA7ncRWvJNJaKeYXDzV7+ykmMvS2IiC4EQBozU eV8QufvApYhjLx9hoDxsxdvAf/LeoyT5WZpHFCyO3wgYqApqnp1hu3ga2Cw6r7tiDCt2wr kUd4xjBMt5KN2phDJIGHBF1lTh0YQdEsVBCqpHWa2zymhQfiuB/SGpdAEJr4/jEOmAMX0F ebUGe1UrN3kL0JcsAO3RuKo7B2VM+uSYGftkqdJ2pbCHectN3SW8Decw1DL0zQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639326561; a=rsa-sha256; cv=none; b=JmmNhB8KXBid2ghTwL3+GM8LNFgIxKHMe9Ti4lExSxrkCOIXed2ovWtcXlqOIjaX3egtg0 pqre2tvaCY2NqTtWRjLJM7MDRjPSHJcxmr16xR6tn6adQjB9Vs+xQKk6hAH8g3LBu/L2TS HJ9qQAoZa5qvaicbzakWJ1y4WIyBG6tTQoTl4pu78cm5wsUZ0Dz6w3SyBRumv9h/qgjwA6 MyvKYdwujUksLcDlXRlG/Z9uX2ZWtV9Do1rWhsRwOr4ls3BnelDzzw8saqL9s3LXSWQE1j oks4K3HCDzr3eCrVaizRTFw9mIwI0EIgg1m33k1bJ6Xqr0EsAGjQ0xWeumUYuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=jpbqHoy3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.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: -4.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=jpbqHoy3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.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: 3DD631E197 X-Spam-Score: -4.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: HZ9WeDXymM0a --=-=-= Content-Type: text/plain Philip McGrath writes: > * gnu/packages/node-xyz.scm (node-file-uri-to-path): New variable. > --- > gnu/packages/node-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 54 insertions(+) > > diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm > index b979d0cd53..d23326fa25 100644 > --- a/gnu/packages/node-xyz.scm > +++ b/gnu/packages/node-xyz.scm > @@ -24,6 +24,7 @@ (define-module (gnu packages node-xyz) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (gnu packages sqlite) > #:use-module (gnu packages python) > + #:use-module (gnu packages web) > #:use-module (guix gexp) > #:use-module (guix packages) > #:use-module (guix git-download) > @@ -772,3 +773,56 @@ (define-public node-sqlite3 > non-blocking bindings for SQLite3, written in modern C++ and tested for memory > leaks.") > (license license:bsd-3))) > + > +(define-public node-file-uri-to-path > + (package > + (name "node-file-uri-to-path") > + (version "2.0.0") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/TooTallNate/file-uri-to-path") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "08l779az44czm12xdhgcrnzpqw34s59hbrlfphs7g9y2k26drqav")))) > + (native-inputs > + `(("esbuild" ,esbuild))) > + (build-system node-build-system) > + (arguments > + `(#:absent-dependencies > + `("@types/mocha" > + "@types/node" > + "@typescript-eslint/eslint-plugin" > + "@typescript-eslint/parser" > + "cpy-cli" > + "eslint" > + "eslint-config-airbnb" > + "eslint-config-prettier" > + "eslint-import-resolver-typescript" > + "eslint-plugin-import" > + "eslint-plugin-jsx-a11y" > + "eslint-plugin-react" > + "mocha" > + "rimraf" > + "typescript") > + #:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda* (#:key inputs native-inputs #:allow-other-keys) > + (copy-recursively "src" "dist") > + (invoke (string-append > + (assoc-ref (or native-inputs inputs) "esbuild") > + "/bin/esbuild") > + "dist/index.ts" > + "--outfile=dist/src/index.js" > + "--format=cjs" > + "--sourcemap" > + "--platform=node")))) > + #:tests? #f)) > + (home-page "https://github.com/TooTallNate/file-uri-to-path") > + (synopsis "Convert a @code{file:} URI to a file path") > + (description "Accepts a @code{file:} URI and returns a regular file path > +suitable for use with the @code{fs} module functions.") nit: We generally write description as full sentences, I'd suggest: --8<---------------cut here---------------start------------->8--- This package provides a method to convert a @code{file:} URI to a file path. It accepts a @code{file:} URI and returns a regular file path suitable for use with the @code{fs} module functions. --8<---------------cut here---------------end--------------->8--- Otherwise LGTM! Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmG2Iy8YHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31URwAIAJPl3bBjQuWQEAgWX1H+IIbK ZpSzDetlbNyH7CXZ89obIJic5JvnOviLDgj7Pg0eEUuwyCgrQij6nuVDCwDNkUQd ko4+sAaZEQS+jOnK0jyOKMUGAVysnA+5aucdmI5GIml7p/LEF2PFrzq+H3mEtdGx iT/9+2+a514rXif34mDszfSg7zVd2eE9rhqyXuiMgbgJmLr6k+Ya54WFpSxbPz/F mSbYKferhKwL7bKGoUvYDWeeDH7IOznySH11BIFzSsfn6vpfkk09fXYbdr82ieGm TqTUV58pH7Fk1aTbThnTIiseoYi8mP44gWUDzmy+L+v5iFW0dD0vkEw8YfqC09o= =O7fw -----END PGP SIGNATURE----- --=-=-=--