From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4LoWMJ4nxGXcNQAAqHPOHw:P1 (envelope-from ) for ; Thu, 08 Feb 2024 02:00:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4LoWMJ4nxGXcNQAAqHPOHw (envelope-from ) for ; Thu, 08 Feb 2024 02:00:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707354014; a=rsa-sha256; cv=none; b=evv5YobN8UlasHkHjcEMpEzVt1aew4IsdItee/kEkAL1Z/e1al/pZNCbNJgjxZ+ddXWE6z A03+TOreBu911dcX+ik1swP2PqTZk77GDHv6IWZm+tPFRjl4an4e1tA9CD9CJ6fjzo1tuf xrBeTz4aDtmRGbH5Ppa/6a0kAaiC7HJLR/v16m5QbqUDCKqR88kFqbPsUP/J+zLd/KFYhg Fnhw2cjxMsYJ2coEXfE6DXlgjmhy0X/xq2SVql1t6qcf2xz9efUfXXvPsz7he2YKS30P2g NF12pY22vX0n0doWGMbQesrEeHSr8usr0gpysSC3BDdE5VJSsK+gBqA4oCBu0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707354014; h=from:from:sender:sender:reply-to: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; bh=YsLt7aj9faOpMtOHHlbwXoQDxPmduJ7JREHxO9GocjU=; b=HdJXNmFnj0FYw3jFGiwqqvdMfv0GU/fcfm8O0oqekf6OOtDOfkgBirqPbT3y1ATK4B6Frf IqHFpLNXp/oMXbhUlY0e62L047Kfr1mtVg4f9CuFbRJQzs92+/iZegrKaDljEFSKQpdDcG DD5UCpK+MlOJ3U0Lutk3V7Sym/HJlV9Sp3TNjrBOwicMU2HJzHnmDxzQtLWZKUihxjqukA hb1sCbK9mLT86hVvhWucEJOMt8ewO9apswYtLK7wZOwEBTBrUEfF9PHJnqnhsRsYlnOkPr cWTX8O8G61BPVG3L/jBKzozE9L49ufZ+l6SpTovoEz40aR4clWfisQxZeK2jJw== 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 8FD8577480 for ; Thu, 8 Feb 2024 02:00:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXslZ-000466-UQ; Wed, 07 Feb 2024 19:59:49 -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 1rXslY-00044I-KW for guix-patches@gnu.org; Wed, 07 Feb 2024 19:59:48 -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 1rXslY-0000kt-CL for guix-patches@gnu.org; Wed, 07 Feb 2024 19:59:48 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXslm-0008I1-CW for guix-patches@gnu.org; Wed, 07 Feb 2024 20:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62375] [PATCH 0/1] npm binary importer Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Feb 2024 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62375 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: jlicht@fsfe.org, 62375@debbugs.gnu.org Cc: dev@jpoiret.xyz, mail@cbaines.net, zimon.toutoune@gmail.com, othacehe@gnu.org, ludo@gnu.org, me@tobias.gr, rekado@elephly.net, Jelle Licht Received: via spool by 62375-submit@debbugs.gnu.org id=B62375.170735397731802 (code B ref 62375); Thu, 08 Feb 2024 01:00:02 +0000 Received: (at 62375) by debbugs.gnu.org; 8 Feb 2024 00:59:37 +0000 Received: from localhost ([127.0.0.1]:58668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXslN-0008Gs-AT for submit@debbugs.gnu.org; Wed, 07 Feb 2024 19:59:37 -0500 Received: from 2.mo583.mail-out.ovh.net ([178.33.109.111]:56291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXslK-0008Gi-AN for 62375@debbugs.gnu.org; Wed, 07 Feb 2024 19:59:36 -0500 Received: from director3.ghost.mail-out.ovh.net (unknown [10.108.9.148]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id C74242878E for <62375@debbugs.gnu.org>; Thu, 8 Feb 2024 00:59:18 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-l9gd2 (unknown [10.110.113.89]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id C73271FE70; Thu, 8 Feb 2024 00:59:16 +0000 (UTC) Received: from ngraves.fr ([37.59.142.102]) by ghost-submission-6684bf9d7b-l9gd2 with ESMTPSA id LIMXLWQnxGUnChIAtmFz7A (envelope-from ); Thu, 08 Feb 2024 00:59:16 +0000 X-OVh-ClientIp: 81.67.146.208 In-Reply-To: References: Date: Thu, 08 Feb 2024 01:59:16 +0100 Message-ID: <87eddn4vq3.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 2838956615636017906 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrtdefgddvlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeekieegjeefgffhfeeileehveelieevffetkeeiueetueevtdfgfefhvdejleeuveenucffohhmrghinhepnhhpmhhjshdrohhrghenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiedvfeejheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -5.67 X-Migadu-Queue-Id: 8FD8577480 X-Migadu-Spam-Score: -5.67 X-TUID: JbeiWdCPe069 On 2023-03-22 12:25, jlicht@fsfe.org wrote: > From: Jelle Licht > > Folks, > > Here a revised patch to add the npm binary importer. To give some context, > 'binary' here refers to the fact that this downloads archives straight from > the npm registry at https://registry.npmjs.org. Some of these downloaded > archives may not contain the original sources, so unless properly vetted the > output of this importer does not allow one to easily generate package > expressions for inclusion in guix's collection of packages. > > It should work as-is for most simple NPM packages. As noted in an inline > comment somewhere, the way both npm and our very own node-build-system treats > peer dependencies may require some manual intervention from time to time to > hook in the right dependency at the right spot. The upside here is that when > this happens, it's either trivial for a human to spot and fix, or wholly > incompatible with our current approach so not fixable without writing a custom > build system to deal with dependency cycles :-). > > Please test and review, let us get this merged as it might be useful to many > people for building out their personal channels and/or package expressions. > > Special thanks to Timothy Sample and Lars-Dominik Braun for involvement in > realising this, way too long ago. > > > Jelle Licht (1): > import: Add binary npm importer. > > Makefile.am | 2 + > guix/import/npm-binary.scm | 269 +++++++++++++++++++++++++++++ > guix/scripts/import.scm | 2 +- > guix/scripts/import/npm-binary.scm | 113 ++++++++++++ > 4 files changed, 385 insertions(+), 1 deletion(-) > create mode 100644 guix/import/npm-binary.scm > create mode 100644 guix/scripts/import/npm-binary.scm Hey Jelle, Just to understand, is there a reason why you didn't went further with the sucrase approach? -- Best regards, Nicolas Graves