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 ACkSKeagWmHc5wAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 08:36:22 +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 4AO7JOagWmGDQQAAB5/wlQ (envelope-from ) for ; Mon, 04 Oct 2021 06:36:22 +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 02214D620 for ; Mon, 4 Oct 2021 08:36:22 +0200 (CEST) Received: from localhost ([::1]:51350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXHaH-0003jK-3n for larch@yhetil.org; Mon, 04 Oct 2021 02:36:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXHZT-0003g0-6a for help-guix@gnu.org; Mon, 04 Oct 2021 02:35:32 -0400 Received: from flashner.co.il ([178.62.234.194]:46376) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXHZQ-0007OA-4Q for help-guix@gnu.org; Mon, 04 Oct 2021 02:35:30 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 9B4F540417; Mon, 4 Oct 2021 06:34:55 +0000 (UTC) Date: Sun, 3 Oct 2021 20:37:11 +0300 From: Efraim Flashner To: phodina Subject: Re: Plugins for Kicad and other programs Message-ID: Mail-Followup-To: phodina , help-guix References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JX4fB503UuRaECUE" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: help-guix 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=1633329382; 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; bh=BOcPzpNlTmP7A9qJAfWszVjYr5tmdmlxzQtpdL/rFlA=; b=SQuUn4VX66avgzuPn7Wniaz3ONgC1njPzFZ2udipPlMK15Pjcl9GG8HYlUdxXSIDxxCnYP oh1hhJK0EJfgFgOY+c/LIVFSynUgpZ650VAkcFy/iZw7n3//k2wY/3OKF3FX64V3gldGCN ucAegQKNIVRvJBxoz/qxsiMgRAfKlIHsrXFAG53z56mp9mzJvgTwfcbdY6uALP+mKqvcQ2 0r6i1sTQe+iVrGUe/u55uiGeit61CfhuLcxO1uwlR7tO5lGABRX7puIsyX/U3vRXqeBeaz LEazC5eCxFR4tnF9sd1RmyBKg17asVStTYA7iOelbIe9GEclqpGusbmr9JnBrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633329382; a=rsa-sha256; cv=none; b=qrtd/PZt7yWKSL8GrcWmSogK/f+rx1AHtgNeLGKw7lCee5JhhqewU4Se/ZTuAhQJge4H0N PD4rCCJIFBwupBf1HbTvsFSrtULxdOenvFyh+CeENuv1mDCi7GqLIleg8DHTeOl7VGGww0 6oT4SaXqMG+f73iW12ruwOxi8I//MG1f1eFCUkF2ub7pwaPBBukoAJg3xmQJQym8/WNq3g nqlNzNvTkl5qvnI25k2HeLY63mUFP8/Gg1lNi7LBW5c5Lf3vBcHegy/NImFZif2Ngfrz0n 6ZJE5X0hgWFcmPWH/+znUngcKFXJ8r1EPXuG375v4nLUowhT8gHwhmAYUXHJqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: 0.79 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 02214D620 X-Spam-Score: 0.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: gLVFKX5graw8 --JX4fB503UuRaECUE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 03, 2021 at 11:31:40AM +0000, phodina via wrote: > Hi Guix, >=20 > Lots of programs now allow users to extend their features through plugins. > On non Guix distros where the user does not have the root priviledges the= y place > the the content of their plugin in the configuration directory in home di= rectory. >=20 > Here's example for Kicad: > ~/.kicad_plugins/ > ~/.kicad/scripting/ > ~/.kicad/scripting/plugins/ >=20 > To further complicate things they can have their own plugin manager (e.g.= Freecad). >=20 > In some cases they contain just some raw data or configs. However, large = amount has > some code embedded like shell scripts, python which needs special handlin= g on Guix. >=20 > Therefore my question is how to integrate them? >=20 > What I propose is with the merge of home services [2], there is now possi= bility to: >=20 > - create package defintion of the plugin > - create home service that will link the plugin into the correct location > within the home dir >=20 > There is also an alternative. > I searched the Kicad forum for plugin installation and installation into = system dirs > (under /usr) is not recommended [2]. The plugin could be linked into the = plugin > location under the /gnu/store/xxx-package. This could be done by inheriti= ng kicad > package and adding the plugins to the input. That approach wouldn't be ve= ry flexible, > as it would create to many package combinations. >=20 > Also I never installed plugins into system directories on distibutions us= ed before > Guix system so I don't know if it would work. >=20 > [1] commit 6ae4644984608b7eff7ab54d3a5787c661d85b2e > [2] https://forum.kicad.info/t/plugin-location-ubuntu-refresh-solved/24396 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. --=20 Efraim Flashner =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 unencrypted --JX4fB503UuRaECUE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmFZ6kQACgkQQarn3Mo9 g1FPww/+L/taow2HbKCC8225m9VtxhcIZCqeumy+nggfAQnTEWNVeJheDxV9t6JM 1aYyws+E+wpTaMkILUcuPVBBcdZYjFtbm8ZLUKMLO0zQz2wlNZ1ouz4FiTgU7Teh ls/PibN68BB0BoLBWZLTrMkfd+rtukBkW4AhKrtKg7iaVccKbXKolv0n76ocZWJL v7WqljXRXghpkfOoVDZ7Fm7gmcwvljWR5c5XCoZG5xPqVvxha8+Rx4+ld25BHS2x uBDMidYcxMbeF8kv5WJFE6UQORF4cxvxDnHioVMHg/V+MBmnoipyriDQL5uDikB/ +k8AqF0sm2KjsgNbrxqJiYNMBywbNp37Kqch21+txh9chKkIzRLrSleHYDedUA4d PgMTtlHejBCobMMGCNr0MEMEM4EgI5FfGcdTWKM+cld0wdLhBwV4SdvnxZ7K+ztt 4g4I+NyMAOo3ehh2yC1fmuaWcj0q1S34yCSf168ARtgRV7gpk5UNisW/q4Nfzly4 ys+a631ZG6taiICyElsuhwDTzSENCszTENrU2BeFSWrSX5tTucf0qpGQ1R+3tz6e V2NBmJHhW/ujUYctTKL82+EI1SE639+xdhyWxiTv2EMtS2XrF9ErGxwwiJTk438r 4eYuIpnnR6mBHZvAbaxy5UeE0EprWr38VcYeRtknLG2akgF5gSQ= =Ve/w -----END PGP SIGNATURE----- --JX4fB503UuRaECUE--