From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mMGjKnM512ErPgAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:48:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ILvjJ3M512F8GwAA9RJhRA (envelope-from ) for ; Thu, 06 Jan 2022 19:48:19 +0100 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 44D863B636 for ; Thu, 6 Jan 2022 19:48:19 +0100 (CET) Received: from localhost ([::1]:49622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XW7-0004a1-Ky for larch@yhetil.org; Thu, 06 Jan 2022 13:29:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XSm-0007Tr-IE for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:16 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5XSl-00013a-Kq for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5XSl-00057U-I2 for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v8 26/41] gnu: Add node-file-uri-to-path. References: <20211114124151.36743-1-philip@philipmcgrath.com> In-Reply-To: <20211114124151.36743-1-philip@philipmcgrath.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 18:26:11 +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, Timothy Sample , Pierre Langlois , Jelle Licht , Leo Famulari Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164149351919310 (code B ref 51838); Thu, 06 Jan 2022 18:26:11 +0000 Received: (at 51838) by debbugs.gnu.org; 6 Jan 2022 18:25:19 +0000 Received: from localhost ([127.0.0.1]:42243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRu-00051H-JV for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:25:19 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRK-0004uk-RA for 51838@debbugs.gnu.org; Thu, 06 Jan 2022 13:24:43 -0500 Received: by mail-wr1-f67.google.com with SMTP id k18so6446025wrg.11 for <51838@debbugs.gnu.org>; Thu, 06 Jan 2022 10:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:cc:content-transfer-encoding:message-id :mime-version; bh=ailwhcUzdrjEJ+BOTqKfxpQQZ6zv3lgwVsLtTeJVUaQ=; b=O0kqFHp7Z4K0mR9RMrzfN8xY0eA5YIiGOwyUy5PaxM1vm+FzqiEl2I66/XU06w0FpJ rDr3wNMRAoS/rv/nKlDh+2Ka68oMewaLHu0r5YT2IJZwJFnnhahXv1Z7kvJ8nhCHDqpU ar7/53eQ4i3CSioEDRREMtAq+doW1HmEfTX5mj2Kt+EAXLdTCf6Sk77ii/RAmsjLSt8L AjP8Y4kjjx7RHTtJnfIzF4euFRFfrMEaEhr89iqezJxTUiO9M1TcznLxFQLREQBGXH77 LQIh6XtG5EY1r/y3XZrZeBX38Cf8tQTe+V4wpUcZW53iOxDlLyjb6xHtDrG90pwFDgRs tb2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:cc :content-transfer-encoding:message-id:mime-version; bh=ailwhcUzdrjEJ+BOTqKfxpQQZ6zv3lgwVsLtTeJVUaQ=; b=Tm8xKmfY2tqShWOBn7ZbTrAEi+zXDJ4K2HM+jEVuvt2ksm9tCMJWVs3SWb4GmFU49H 6uXZRFjFkd0Q7WGVToOFYtw1/VryhSn69S1Cwwz+xuWce+IlF332gxUDsW25vRMtdAz8 jUJR12uUi6Dj+rmCFWDGr8L7519ywprd7/jMgixaM79oIS1MK+GuQaQO+QJZ2JoeejDr ISprUhzB6T496Pylq+/fYCC0K8tsbPudmft4Toc7f0EnBiyb8eHNfta82wH/LRvgQCaf 3sKBZ4ee2SEXjHJzFXz9YMwl6k6F/yIT4aC+MDuBu4riCHArUSh658v3qBQgN/XQH2n8 BTeA== X-Gm-Message-State: AOAM5317JL1sHobiPIfzxl77cpGR3zILA6Zmt9yjlKQHL80jHctXSwtQ hLPjb8zGQn0tCnds6sQ89p8= X-Google-Smtp-Source: ABdhPJwGcCNxIVeTbz+pkhbZCgD6oHrui/iVsWSG4qDiTfect5Bs3zds4faUU6dIxR6gfwJxpKsN0A== X-Received: by 2002:a5d:47c6:: with SMTP id o6mr53349026wrc.326.1641493477416; Thu, 06 Jan 2022 10:24:37 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id b17sm2693311wrq.91.2022.01.06.10.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 10:24:37 -0800 (PST) From: Liliana Marie Prikler Date: Thu, 30 Dec 2021 02:39:04 -0500 Content-Transfer-Encoding: 7bit Message-ID: <87b517521f846892f5975b146e70703e02df82ad.camel@gmail.com> 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641494899; 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=ailwhcUzdrjEJ+BOTqKfxpQQZ6zv3lgwVsLtTeJVUaQ=; b=Agx0f7y1T7S5OXr4jpDGkyTOLFlf6uaNJkE+B5hUE15zp7GdwhusumBCKLDlrojnIAoE+9 amrTpp/Cyf6AV2LQl3dulaBhnFPeuXiFG7xoYuE6QcpA3EXEISALdRlund8JpeoR3RhdEz xhsPWcK0tSofHvj1jqyMHebWwzjE6lnNRK5wu+MFH54kPMCbt6VHK4o+GGgf2oM3UClKfn +6s5X9uBduLUFvI/hp0V1kIb0RpKWAuLTWOSZa9zsdx9BzUDva/R09wwdMuN2dJN+23x1F KuCTURyXDZwuFbWD1QjG61UhAU/i3ANsdx3K3iNq8D27cJBoZwrBNCjWeu8bQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641494899; a=rsa-sha256; cv=none; b=Cbb8wWuQnGYURU/Hq1Z5DcYU+BfQ6XBbozgrls+gykQNRf5PndQTWKBthWdVQIphNRgq3S MVxrAcV9Y3mMp4Pw64Zvol+cDjoofY6Z9v3r0p7Gqfa37ypZ5t0xlWM1EM9yU71VuS8xvL xzmWFGTkOjxs0lvqkcv0FG8PQ1phMXogNRN2s1OTUO95+dcx54FXde18zlezRkQVzTgDF+ O/Ta5LTMRT5wVl7fNkLjyVZz59M/vq18AMOhxkWE5MoOWGBW6uTfXKiD4WZxPZRv3foM7o qonYlsPPNvxWErPzqr9MQQ1Pvwou6hV0x9Jq63M0EQcCB0R8jsTFIWl7Dc47DQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=O0kqFHp7; 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: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=O0kqFHp7; 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: 44D863B636 X-Spam-Score: -2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: sHPR9MqfD7PU * gnu/packages/node-xyz.scm (node-file-uri-to-path): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/node-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index c22291f66a..d3dc7c0b2b 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) @@ -817,3 +818,48 @@ (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 + (list esbuild)) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies + `("^@types/mocha$" "^@types/node$" + "typescript" + "eslint" + "^cpy-cli$" + "^mocha$" "^rimraf$")))) + (replace 'build + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (copy-recursively "src" "dist") + (invoke (search-input-file (or native-inputs inputs) + "/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 "This package provides a function to convert a @code{file:} +URI to a file path. It accepts a @code{file:} URI and returns a file path +suitable for use with the @code{fs} module functions.") + (license license:expat))) -- 2.34.0