From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sAloJAg1R2FHNwEAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 15:03:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WAEWIAg1R2HVDgAAB5/wlQ (envelope-from ) for ; Sun, 19 Sep 2021 13:03:04 +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 1FA2C10C7C for ; Sun, 19 Sep 2021 15:03:04 +0200 (CEST) Received: from localhost ([::1]:56400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRwTH-0005Ma-64 for larch@yhetil.org; Sun, 19 Sep 2021 09:03:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRwRv-0004rA-NH for guix-devel@gnu.org; Sun, 19 Sep 2021 09:01:39 -0400 Received: from mail.cock.li ([37.120.193.124]:51544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRwRq-0006AZ-Sc for guix-devel@gnu.org; Sun, 19 Sep 2021 09:01:39 -0400 User-agent: mu4e 1.4.15; emacs 27.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1632056490; bh=j7QtUGBFk2kFk2VCW6bKOYHJldER08PKtojuazNHx0o=; h=From:To:Subject:Date:From; b=kVF8D7hYcgghXoZv/yUXanai9ntHKKkUQ2lgAyG+Dxinx2g5vIamFx32MczznEvfl n81otruEDqxjlISlvm/M098eRaNc2N5Ybez72rwNL9TE3erlMiZSPn1V/N6krPNo0g uiYMA4Uh5UwLJruU4kCKZMxwEgTUa++7Rs01OEtBPYAMV37pJ3DUgYt+R9Zr1iJmTY lkEVUX2wTbvxnNvAv+kREmBVi8J7zlho8NG4iOyB+VZtaPQjZ5hSNDB7ZJKroAKKqP mtWtdnc8QGxlijA4rPN5NZzqtUTaTA75v86W97iUgD/+KTlTI46ZNOCtAOMAUfiyr1 W1T824vsYYJXQ== From: pinoaffe To: guix-devel@gnu.org, Jelle Licht Subject: Adding extra package importers Date: Sun, 19 Sep 2021 15:01:26 +0200 Message-ID: <87mto8zpll.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, 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: , 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=1632056584; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j7QtUGBFk2kFk2VCW6bKOYHJldER08PKtojuazNHx0o=; b=NFMtmyBRjLnN1fwNALfsUTpOtHdkBNWakyy6khCCBz4z2X1yO8ZtyCM0n0sfgv/btGxgen gL60nODjubwtRvHQWQjsdgdgESblhqAAIwiAAS7NLHNccEFkVwVLFee1JsiW++RQDl8Yge MEt+olFEaYDyj6BluTxZdsNU3uWpxSerDagttLOsIspAJPLUL6tb6XUhYX81i9++3ie123 n4ghqjxaVTF3tusbj/Hzlckl7jO5XYb2ecPsXgIkrFLMD4DVUz/lD5fR2ujL3W6FZuYzb4 HtF8eWl52S0le91TS8LBfLhwopoCyqVHt8ISI6MOTyZsIT4KNwVMHKc5QqV+tg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632056584; a=rsa-sha256; cv=none; b=b4xdCGGnZyjAALyEsTsoFy6/DIzmfFfSKsrf/Qb0Hvf4WizVPrsIiN7mzTXFaOiZ1IgZyP hfc/5/YTL+8BaEZugl5RU3B+gXjgam4Ds+W9t7R2PyqR0YQhSmf+kL6FuaztmzrzWYjc30 GmKWRd5VmBNJ8tuXVV32VpsLb0ceRqVhC/SRFqNdE6Tj82PxCE4rnzW2X26lpId//bK6rx Cueh2UbnmUHihr4QR9ILlEFyHqrgV0vRdMZknXk47vYatT/MhytbRTdWwcvIt7rlLy4sAM kAJEyWVxDbmPgdHyXHohaA+foGOUsWVXPSySD9n5qiPUdqQpIsBARPeDwduJqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=airmail.cc header.s=mail header.b=kVF8D7hY; 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: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=airmail.cc header.s=mail header.b=kVF8D7hY; 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: 1FA2C10C7C X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3BrviI3zuMWB Hi guix, Recently, I made an effort to get the guix-npm binary importer working in combination with a relatively "modern" guix - my changes are rather hacky and I think I may have broken a thing or two, but i got it to work reasonably well in the REPL. (many thanks to Jelle Licht and possibly others who initially wrote the importer) Considering that such a binary importer is probably not well-suited for inclusion in guix-proper, I would like to make it available through an additional channel, mostly for my own use but maybe also for others. However, the commandline interface for ~guix import~ operates based on a list of importers in (guix scripts import) in guix proper - is there a way to replace this functionality so that additional guix channels could "extend" the list of importers? Additionally, does anyone have an idea as to how to deal with the fact that a single recursive import will often add several versions of the same package? The only thing I could come up with would be to always append the full package version to variable names, but that seems like a somewhat ugly fix. My current version of the code can be seen at https://git.pixie.town/pinoaffe/guix-npm-binary Kind regards, pinoaffe