Subject: [bug#66453] [PATCH 1/4] gnu: kicad: Add 3rdparty search path.

From: [email-masked]
Date: Tue, 10 Oct 2023 16:05:11 -0400

From: Peter Polidoro <[email-masked]>

* gnu/packages/engineering.scm (kicad): Add 3rdparty search path.
---
 gnu/packages/engineering.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index c9aec482da..cad419ef70 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1155,7 +1155,14 @@ (define-public kicad
             (files '("share/kicad/footprints")))
            (search-path-specification
             (variable "KICAD7_3DMODEL_DIR")
-            (files '("share/kicad/3dmodels")))))
+            (files '("share/kicad/3dmodels")))
+           ;; Using the following environment variable removes write access to
+           ;; the KiCad Plugin and Content Manager directory so using any Guix
+           ;; plugin or color theme packages requires all plugin or color
+           ;; themes to be installed using Guix packages
+           (search-path-specification
+            (variable "KICAD7_3RD_PARTY")
+            (files '("share/kicad/3rdparty")))))
     (native-inputs (list boost
                          desktop-file-utils
                          gettext-minimal
-- 
2.41.0