From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kJc/AkY9W2FRxgAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 19:43:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mLiJOUU9W2F2QQAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 17:43:33 +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 73B253611A for ; Mon, 4 Oct 2021 19:43:33 +0200 (CEST) Received: from localhost ([::1]:41640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXRzv-00021r-Td for larch@yhetil.org; Mon, 04 Oct 2021 13:43:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXRzU-0001zW-Lr for help-guix@gnu.org; Mon, 04 Oct 2021 13:43:04 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:29320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXRzR-0001Ae-SP for help-guix@gnu.org; Mon, 04 Oct 2021 13:43:04 -0400 Date: Mon, 04 Oct 2021 17:42:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633369376; bh=5z18De7pWaabSG0c/U37jx/WYMOtGZiR4jCuBabyLL4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=U9liVUrq0M06Gz5v5ACEua6DLaVtq3k0MyzI/kaIBR5snOqEHGSuWiTQHHkGnmyGm MoAHk67VyLHrONpvbXf/4N0pG/6bXTlBosyg7Yc4HZZwVL/IUTnfj2Tq7WVQ4X16R5 SIgKOYFOA0Owyiy2mmMk/hX2ii8g5H6ixJumLyDA= To: Efraim Flashner From: phodina Cc: help-guix Subject: Re: Plugins for Kicad and other programs Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=phodina@protonmail.com; helo=mail1.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633369413; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5z18De7pWaabSG0c/U37jx/WYMOtGZiR4jCuBabyLL4=; b=kyKYSNaZeaQ1brSr+QpllKrSYCmg89ZLliFS85gMkRQiesNIDNs+l57u+lZG99guy7dz8Q Kzp6IokqtkzEbVU7g+Qo/VL/CvcupcGXduNSDKMYBUo9D+ALzL9fiUVxTqC3BJjCKmXwzc +3tIbw2k7g5eDShRgBA5yO3IPgYMx2sNr1xuK1fqYnG3yaD/UX524Qrjzefwr2Aa9hpaNG xU5MwGPCTIpZSZmTcH5s990JkoK7i+K/UzmrYk0gvsJvXc2AFOL4zz5HKj3wM9W7Yu3k9w cGadSygiQXftS3Q43tV/8Y/uVVoQcqheJGz2yoWOPdWgMl2AStvWAKlwUSIkAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633369413; a=rsa-sha256; cv=none; b=MWIONbX5HbcWE2iTIrOHdRCs6f1Q34EIgyz3ERSJ7Wa7DQZOeJytrZWCRkbJEYQ7K11252 SyMpkwiFKnd+Q2zyNhWZ1k9z3Xq8DajYsBk1KXrq1PNJZfsLC2ObNIyfTKf3FhchX7wFBK nRI3gcznGkSph+veweeCxEx6oPrf1Z06jl7LvhfB4sEUdaImaPjqg+CJOWqOGMf5bBbawF Wg+eOVOwbjGbm7EYaTGIREeJBxDNfosIsTPo4hTBdp65bzfeQWz7XCXD/YFdbJr6mtN5nY rJFMUDRd+aeAnG+brk6Xsln+6HI1bMhy8bf6zWbnC9cXqNmuv8BE9TmKcb3sAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=U9liVUrq; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: 2.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=U9liVUrq; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 73B253611A X-Spam-Score: 2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: VFDjtOYl5Lwq On Sunday, October 3rd, 2021 at 7:37 PM, Efraim Flashner wrote: > On Sun, Oct 03, 2021 at 11:31:40AM +0000, phodina via wrote: > > > Hi Guix, > > > > Lots of programs now allow users to extend their features through plugi= ns. > > > > On non Guix distros where the user does not have the root priviledges t= hey place > > > > the the content of their plugin in the configuration directory in home = directory. > > > > Here's example for Kicad: > > > > ~/.kicad_plugins/ > > > > ~/.kicad/scripting/ > > > > ~/.kicad/scripting/plugins/ > > > > To further complicate things they can have their own plugin manager (e.= g. Freecad). > > > > In some cases they contain just some raw data or configs. However, larg= e amount has > > > > some code embedded like shell scripts, python which needs special handl= ing on Guix. > > > > Therefore my question is how to integrate them? > > > > What I propose is with the merge of home services [2], there is now pos= sibility to: > > > > - create package defintion of the plugin > > - create home service that will link the plugin into the correct loca= tion > > > > within the home dir > > > > There is also an alternative. > > > > I searched the Kicad forum for plugin installation and installation int= o system dirs > > > > (under /usr) is not recommended [2]. The plugin could be linked into th= e plugin > > > > location under the /gnu/store/xxx-package. This could be done by inheri= ting kicad > > > > package and adding the plugins to the input. That approach wouldn't be = very flexible, > > > > as it would create to many package combinations. > > > > Also I never installed plugins into system directories on distibutions = used before > > > > Guix system so I don't know if it would work. > > > > [1] commit 6ae4644984608b7eff7ab54d3a5787c661d85b2e > > > > [2] https://forum.kicad.info/t/plugin-location-ubuntu-refresh-solved/24= 396 > > Following down that thread, I came across this other bit too: > > Can you follow the instruction in the document you linked to: > > Open Tools -> Scripting Console in pcbnew > > type import pcbnew; print pcbnew.PLUGIN_DIRECTORIES_SEARCH > > > What does it tell? > > v3xX > > Aug 2020 > > /usr/share/kicad/scripting > > /usr/share/kicad/scripting/plugins > > /home//.config/kicad/scripting > > /home//.config/kicad/scripting/plugins > > /home//.kicad_plugins > > /home//.kicad/scripting > > /home//.kicad/scripting/plugins > > it looks like it should search in this folders. > > so it looks like kicad could have a search-path of 'share/kicad' or > > 'share/kicad/scripting' and the plugins installed to > > %out/share/kicad/scripting for each plugin. > I checked the output in the scripting console as you suggested and got simi= lar output: >>> import pcbnew >>> print pcbnew.PLUGIN_DIRECTORIES_SEARCH /gnu/store/nvjsh0xdg6r1kkz9n8a3kx4lrg0s1dc3-kicad-5.1.6/share/kicad/scripti= ng /gnu/store/nvjsh0xdg6r1kkz9n8a3kx4lrg0s1dc3-kicad-5.1.6/share/kicad/scripti= ng/plugins /home/user/.config/kicad/scripting /home/user/.config/kicad/scripting/plugins /home/user/.kicad_plugins /home/user/.kicad/scripting /home/user/.kicad/scripting/plugins So that means the plugins can be installed into the /gnu/store, right? The question now is how do you symlink the plugin into the kicad plugin dir= ectory? Does it mean the definition of the kicad package has to be modified? By tha= t I mean create a new package definition, inherit kicad and add the plugin = to the inputs? Don't think this approach will scale nicely. It would be better to let the plugins create the symlinks themselves but th= is creates the problem that the outputs in /gnu/store are read-only. Theref= ore plugin package won't create a symlink into the directory inside kicad p= ackage. Or create symlink in the user home directory? > > Efraim Flashner efraim@flashner.co.il =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 > > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > > Confidentiality cannot be guaranteed on emails sent or received unencrypt= ed