From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ECvtCapwZGHNpAAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 19:13:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YBGYBapwZGEeDwAAB5/wlQ (envelope-from ) for ; Mon, 11 Oct 2021 17:13:14 +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 BF572A139 for ; Mon, 11 Oct 2021 19:13:13 +0200 (CEST) Received: from localhost ([::1]:51490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZyrQ-0007HV-ST for larch@yhetil.org; Mon, 11 Oct 2021 13:13:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZyr9-0007HN-ES for guix-devel@gnu.org; Mon, 11 Oct 2021 13:12:55 -0400 Received: from mail.cock.li ([37.120.193.124]:41816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZyr3-0003qY-Go for guix-devel@gnu.org; Mon, 11 Oct 2021 13:12:54 -0400 References: <87mto8zpll.fsf@airmail.cc> <87zgs3829p.fsf@gnu.org> <87fsttuys3.fsf@dustycloud.org> <877deo473m.fsf@gmail.com> <87czoflhzx.fsf@gmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1633972355; bh=oJkHdYc9Aux5zRTra+38guW59IwylhTWZa3WgWiu6ig=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=xdiwoFqDwFT3RCboTyEtT8VPkRVMHRKxVHFV8EdiE0ZJ0/Wa0WTVfRZuO14kMZPtj le4YtiDha9NrrYFHrSvgkrLD/q2DEIeZIRsFNl1EEVVh0fF36MJUapmNHteDkG9xgk Q1VqccHGZXpQRr45cr6hroT0WU4eDj+iQnrRe46IaG9Uwf4Gr+Uv4bD9QuBLXab7hd 0jfqdb2Vh1CXgWnRQx5ds0Q2SncTLjCGT7FQ2NtyV6y3l0TvcucEuqzsETWreOcnTh aRari6nFKMV1p74zI1HGtpumsQQmEEaBJ/B8meNa+kf6+Y3j1FGH01mcE6CeSppFSj m08s4C1DCCMqg== User-agent: mu4e 1.4.15; emacs 27.2 From: pinoaffe To: zimoun Subject: Re: Merging the =?utf-8?B?4oCcYmluYXJ54oCd?= NPM importer? In-reply-to: Date: Mon, 11 Oct 2021 19:12:32 +0200 Message-ID: <87ily3lc3j.fsf@airmail.cc> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.120.193.124; envelope-from=pinoaffe@airmail.cc; helo=mail.cock.li X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Katherine Cox-Buday , Maxim Cournoyer Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633972393; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0qT7+isHTVI1+A7/2qYIa6CCnXGT4Aut4jpRKGUy0ZY=; b=TQ4iXHz1zN2aAP/ptq2hdfx5T8SW7onyyUEw1YKOs+jBseq9F5A61J0hjU4S1ETB67g5IH hbJFfuf9rU4bchA7xackuZicDrLp3L0bo6pNG4cyRiwvn6zrDePcPocCHUGKUGNAMg+Ea7 eqf4h52VS4fgZo7dsS8nwzaJl3D8/kxpWJFN8zPmjguNKRjt01aM1YSfAUqUmajo7zHXt0 m1wjjyt7kcJl5yByoC9zz6ZDzoYRxemy0ad0Jbo5/iUQMSUuDE03ngKJQYobF0ib3BNHqF ku4PN9jOkFNQF2lRoVS5m2Vvr/PZnaNOh3Co/ehXeX2mNP/c8MsI6dt9co1u1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633972393; a=rsa-sha256; cv=none; b=sOTGWhZfapR11SvFSc1oF4VU2gDT/VqfrnzmSu5dqE/zQ+MMFv9zBOaWQ68m7exhp8ME+j HU2fzoig8HUdalchd586Bs+0PpeE1VfPhZrKCEjZjOBPEMzWcVCtvP7zZUvIUNzGS9JZjS fKuOBfMY5joOsh3W4FuZVbmAYKKMQna7dSfuEDAVYt0xWulghsbDib87yZ6JounfVaMCt2 QDDYTqhv/Io3d22vKULEiVTAlrD6wNLk896uM9WfN926sBc/KxoQHECMN9DIlXjPSndpcA 5Zq8fmvkT7a4F5hRKKH9DHbuZJu9Tn5G1gjv/Vsv6vUKCpuzZflvPExjg9KSCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=airmail.cc header.s=mail header.b=xdiwoFqD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=airmail.cc header.s=mail header.b=xdiwoFqD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BF572A139 X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: gtPSIiN0PwJZ Hi, zimoun writes: > Instead of a strong inclusion, one could imagine this importer as a > regular package using GUIX_EXTENSION_PATH. For instance, it could be: > > guix install guix-import-npm > > then something like: > > guix import-npm > > This just works, modulo some polishing and doc. :-) For an example, > see the package gwl. An example using another strategy is using a > channel, for instance > . > > I have not checked if this "extension" system could work for > subcommands as the importers, i.e., having something like: > > guix import npm > > where this 'npm' would not be part of Guix proper (not in > guix/import/) but instead would be a package extending Guix. This would currently not work, but I've submitted a patch that would make it work (with some performance concerns), and I think it should be possible to resolve or at least significantly lessen those concerns. However, I think inclusion in guix proper would encourage usage and make maintenance easier (since maintaining two tightly coupled but separate codebases is more work than maintaining a single codebase with the same functionality) While I would not be opposed to a package- or channel-based approach (I initially set out to make a guix-npm-binary channel afterall), merging it into guix-proper would definitely have my preference. Kind regards, pinoaffe