1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: kicad: Update to 10.0.0.

gnu/packages/electronics.scm (kicad): Update to 10.0.0.
[#:configure-flags]: Drop “-DKICAD_SCRIPTING_PYTHON3=ON”,
“-DKICAD_SCRIPTING_PYTHON3=ON”, and “-DKICAD_USE_EGL=OFF”.
Add “-DKICAD_WAYLAND=OFF”.
[#:phases]<fix-ngspice-detection>: Add replacement for “NGSPICE_DLL_DIR”.
[native-search-paths]: Replace “KICAD9_TEMPLATE_DIR” with
“KICAD10_TEMPLATE_DIR”, “KICAD9_SYMBOL_DIR” with “KICAD10_SYMBOL_DIR”,
and “KICAD9_FOOTPRINT_DIR” with “KICAD10_FOOTPRINT_DIR”.
[inputs]: Add libspnav and poppler. Sort alphabetically.
(kicad-doc): Adjust accordingly.
[#:configure-flags]: Add “-DLANGUAGES=en”.
(kicad-symbols): Adjust accordingly.
[native-inputs]: Add python-wrapper.
(kicad-footprints, kicad-packages-3d): Adjust accordingly.

Change-Id: I8898997ccc5ed3cf73be5a75992603bb79bd93a1
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Peter Polidoro
2026-03-20 14:56:39 -04:00
committed by Liliana Marie Prikler
parent 2296d75f8d
commit 1b08655ef8

View File

@@ -1069,7 +1069,7 @@ characterization result in a liberty library file.")
(define-public kicad (define-public kicad
(package (package
(name "kicad") (name "kicad")
(version "9.0.8") (version "10.0.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -1077,7 +1077,7 @@ characterization result in a liberty library file.")
(commit version))) (commit version)))
(sha256 (sha256
(base32 (base32
"1b995p0qb9cjpj0n3x3szbqr6d7fxwmrp2nbx37y7ym2bc1lpxd8")) "1470x1276yvd8li3w25zjg73fkpl2qp4dsx7adanafq5c4l47rmc"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
@@ -1085,12 +1085,12 @@ characterization result in a liberty library file.")
#:tests? #f ;no tests #:tests? #f ;no tests
#:build-type "Release" #:build-type "Release"
#:configure-flags #:configure-flags
,#~(list "-DKICAD_SCRIPTING_PYTHON3=ON" ,#~(list (string-append "-DOCC_INCLUDE_DIR="
(string-append "-DOCC_INCLUDE_DIR=" #$(file-append opencascade-occt
#$(this-package-input "opencascade-occt") "/include/opencascade"))
"/include/opencascade") ;; Guix uses 'wxwidgets-sans-egl' for KiCad because
"-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON" ;; wxWidgets' EGL canvas support breaks with glew-2.2.
"-DKICAD_USE_EGL=OFF" "-DKICAD_WAYLAND=OFF"
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo") "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
#:phases #:phases
@@ -1099,9 +1099,13 @@ characterization result in a liberty library file.")
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "eeschema/CMakeLists.txt" (substitute* "eeschema/CMakeLists.txt"
(("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"") (("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"")
(string-append "NGSPICE_DLL_FILE=\"" (string-append "NGSPICE_DLL_FILE=\"libngspice.so\""))
(assoc-ref inputs "libngspice") (("NGSPICE_DLL_DIR=\"\\$\\{NGSPICE_DLL_DIR\\}\"")
"/lib/libngspice.so\""))))) (string-append "NGSPICE_DLL_DIR=\""
(dirname
(search-input-file inputs
"lib/libngspice.so"))
"\"")))))
(add-after 'install 'wrap-program (add-after 'install 'wrap-program
;; Ensure correct Python at runtime. ;; Ensure correct Python at runtime.
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
@@ -1126,19 +1130,19 @@ characterization result in a liberty library file.")
(files '("")) (files '(""))
(separator #f)) (separator #f))
(search-path-specification (search-path-specification
(variable "KICAD9_TEMPLATE_DIR") (variable "KICAD10_TEMPLATE_DIR")
(files '("share/kicad/template")) (files '("share/kicad/template"))
(separator #f)) (separator #f))
(search-path-specification (search-path-specification
(variable "KICAD9_SYMBOL_DIR") (variable "KICAD10_SYMBOL_DIR")
(files '("share/kicad/symbols")) (files '("share/kicad/symbols"))
(separator #f)) (separator #f))
(search-path-specification (search-path-specification
(variable "KICAD9_FOOTPRINT_DIR") (variable "KICAD10_FOOTPRINT_DIR")
(files '("share/kicad/footprints")) (files '("share/kicad/footprints"))
(separator #f)) (separator #f))
(search-path-specification (search-path-specification
(variable "KICAD9_3DMODEL_DIR") (variable "KICAD10_3DMODEL_DIR")
(files '("share/kicad/3dmodels")) (files '("share/kicad/3dmodels"))
(separator #f)) (separator #f))
(search-path-specification (search-path-specification
@@ -1155,23 +1159,25 @@ characterization result in a liberty library file.")
(inputs (list bash-minimal (inputs (list bash-minimal
cairo cairo
curl curl
gdk-pixbuf
glew glew
glm glm
hicolor-icon-theme hicolor-icon-theme
libngspice gtk+
libsm
libgit2 libgit2
libngspice
libspnav
libsecret libsecret
libsm
mesa mesa
nng
opencascade-occt opencascade-occt
openssl openssl
python-wrapper poppler
gtk+
wxwidgets-sans-egl
nng
python-wxpython
protobuf protobuf
gdk-pixbuf python-wrapper
python-wxpython
wxwidgets-sans-egl
(list zstd "lib"))) (list zstd "lib")))
(home-page "https://www.kicad.org/") (home-page "https://www.kicad.org/")
(synopsis "Electronics Design Automation Suite") (synopsis "Electronics Design Automation Suite")
@@ -1194,10 +1200,11 @@ electrical diagrams), gerbview (viewing Gerber files) and others.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"07g80p1igp8j3kh3qpmqd150i9950w1143yhncwik2ypccwjdfjy")))) "1k0ayxsy0nnv9qxkii9yrxs7jx9y3wfjpsv5yl9wql3vdg3qay69"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags (list "-DBUILD_FORMATS=html") `(#:configure-flags (list "-DBUILD_FORMATS=html"
"-DLANGUAGES=en")
#:tests? #f)) ;no test suite #:tests? #f)) ;no test suite
(native-inputs (list asciidoc (native-inputs (list asciidoc
gettext-minimal gettext-minimal
@@ -1225,8 +1232,9 @@ electrical diagrams), gerbview (viewing Gerber files) and others.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"08qb4rqxsyhrcvj1k200m2c06jjy7jwjmf9n1qkcm0biqqc5dba4")))) "0khfnln0f2zsz5hy31nw2rr0nflb2z3s9n9f7g41g03m9l3s43v2"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (list python-wrapper))
(arguments (arguments
`(#:tests? #f)) ; no tests exist `(#:tests? #f)) ; no tests exist
(home-page (package-home-page kicad)) (home-page (package-home-page kicad))
@@ -1254,7 +1262,7 @@ libraries.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1w7dkb93s84ymi1syxpzacbmkxlnlh0k4z1c62nabspb901nn524")))) "0ymmd1rzrczpvcqzw1mld9x8xhbka0vvjy3kdqwysg4ri97f5wrm"))))
(synopsis "Official KiCad footprint libraries") (synopsis "Official KiCad footprint libraries")
(description "This package contains the official KiCad footprint libraries."))) (description "This package contains the official KiCad footprint libraries.")))
@@ -1271,7 +1279,7 @@ libraries.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1j26dmgz7xfixlqrzclb1wpc6zkd10n1fq7rmdrgwwx083p3c7a8")))) "0k91iw661fpzb7saryjxdcdvk1kis7dhbcpzp7xzjk84i4jvxrp5"))))
(synopsis "Official KiCad 3D model libraries") (synopsis "Official KiCad 3D model libraries")
(description "This package contains the official KiCad 3D model libraries."))) (description "This package contains the official KiCad 3D model libraries.")))