diff options
| author | Peter Polidoro <peter@polidoro.io> | 2026-03-20 14:56:20 -0400 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-29 21:13:14 +0200 |
| commit | 2296d75f8df31ee117f014fa105fea77b4e09d23 (patch) | |
| tree | 07d95c922dfe5416e0fc9340121f06805d0bfce7 /gnu/packages/engineering.scm | |
| parent | 3c5ad0ebc0a7b0ef0a97e081be184cad56f91918 (diff) | |
gnu: Move kicad packages to electronics module.
* gnu/packages/engineering.scm (kicad, kicad-doc, kicad-footprints)
(kicad-packages3d, kicad-symbols, kicad-templates): Move from here…
* gnu/packages/electronics.scm: … to here.
Change-Id: I9f06dc4eb44fe2b5597b23b184852f12e17af8e0
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/engineering.scm')
| -rw-r--r-- | gnu/packages/engineering.scm | 227 |
1 files changed, 0 insertions, 227 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 2ecaec5601f..5808db4fe65 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm | |||
| @@ -998,233 +998,6 @@ The viewer can be used interactively with a REPL (for example Geiser in | |||
| 998 | Emacs).") | 998 | Emacs).") |
| 999 | (license license:gpl3+)))) | 999 | (license license:gpl3+)))) |
| 1000 | 1000 | ||
| 1001 | (define-public kicad | ||
| 1002 | (package | ||
| 1003 | (name "kicad") | ||
| 1004 | (version "9.0.8") | ||
| 1005 | (source (origin | ||
| 1006 | (method git-fetch) | ||
| 1007 | (uri (git-reference | ||
| 1008 | (url "https://gitlab.com/kicad/code/kicad.git") | ||
| 1009 | (commit version))) | ||
| 1010 | (sha256 | ||
| 1011 | (base32 | ||
| 1012 | "1b995p0qb9cjpj0n3x3szbqr6d7fxwmrp2nbx37y7ym2bc1lpxd8")) | ||
| 1013 | (file-name (git-file-name name version)))) | ||
| 1014 | (build-system cmake-build-system) | ||
| 1015 | (arguments | ||
| 1016 | `(#:out-of-source? #t | ||
| 1017 | #:tests? #f ;no tests | ||
| 1018 | #:build-type "Release" | ||
| 1019 | #:configure-flags | ||
| 1020 | ,#~(list "-DKICAD_SCRIPTING_PYTHON3=ON" | ||
| 1021 | (string-append "-DOCC_INCLUDE_DIR=" | ||
| 1022 | #$(this-package-input "opencascade-occt") | ||
| 1023 | "/include/opencascade") | ||
| 1024 | "-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON" | ||
| 1025 | "-DKICAD_USE_EGL=OFF" | ||
| 1026 | "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" | ||
| 1027 | "-DCMAKE_BUILD_TYPE=RelWithDebInfo") | ||
| 1028 | #:phases | ||
| 1029 | (modify-phases %standard-phases | ||
| 1030 | (add-after 'unpack 'fix-ngspice-detection | ||
| 1031 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 1032 | (substitute* "eeschema/CMakeLists.txt" | ||
| 1033 | (("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"") | ||
| 1034 | (string-append "NGSPICE_DLL_FILE=\"" | ||
| 1035 | (assoc-ref inputs "libngspice") | ||
| 1036 | "/lib/libngspice.so\""))))) | ||
| 1037 | (add-after 'install 'wrap-program | ||
| 1038 | ;; Ensure correct Python at runtime. | ||
| 1039 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 1040 | (let* ((out (assoc-ref outputs "out")) | ||
| 1041 | (python (assoc-ref inputs "python")) | ||
| 1042 | (file (string-append out "/bin/kicad")) | ||
| 1043 | (path (string-append out "/lib/python" | ||
| 1044 | ,(version-major+minor (package-version | ||
| 1045 | python)) | ||
| 1046 | "/site-packages:" | ||
| 1047 | (getenv "GUIX_PYTHONPATH")))) | ||
| 1048 | (wrap-program file | ||
| 1049 | `("GUIX_PYTHONPATH" ":" prefix | ||
| 1050 | (,path)) | ||
| 1051 | `("PATH" ":" prefix | ||
| 1052 | (,(string-append python "/bin:")))))))))) | ||
| 1053 | (native-search-paths | ||
| 1054 | ;; Currently, KiCad environment variables are single-valued | ||
| 1055 | ;; (see https://gitlab.com/kicad/code/kicad/-/issues/14792). | ||
| 1056 | (list (search-path-specification | ||
| 1057 | (variable "KICAD") ;to find kicad-doc | ||
| 1058 | (files '("")) | ||
| 1059 | (separator #f)) | ||
| 1060 | (search-path-specification | ||
| 1061 | (variable "KICAD9_TEMPLATE_DIR") | ||
| 1062 | (files '("share/kicad/template")) | ||
| 1063 | (separator #f)) | ||
| 1064 | (search-path-specification | ||
| 1065 | (variable "KICAD9_SYMBOL_DIR") | ||
| 1066 | (files '("share/kicad/symbols")) | ||
| 1067 | (separator #f)) | ||
| 1068 | (search-path-specification | ||
| 1069 | (variable "KICAD9_FOOTPRINT_DIR") | ||
| 1070 | (files '("share/kicad/footprints")) | ||
| 1071 | (separator #f)) | ||
| 1072 | (search-path-specification | ||
| 1073 | (variable "KICAD9_3DMODEL_DIR") | ||
| 1074 | (files '("share/kicad/3dmodels")) | ||
| 1075 | (separator #f)) | ||
| 1076 | (search-path-specification | ||
| 1077 | (variable "KICAD_STOCK_DATA_HOME") | ||
| 1078 | (files '("share/kicad")) | ||
| 1079 | (separator #f)))) | ||
| 1080 | (native-inputs (list boost | ||
| 1081 | desktop-file-utils | ||
| 1082 | gettext-minimal | ||
| 1083 | pkg-config | ||
| 1084 | swig-4.0 | ||
| 1085 | unixodbc | ||
| 1086 | zlib)) | ||
| 1087 | (inputs (list bash-minimal | ||
| 1088 | cairo | ||
| 1089 | curl | ||
| 1090 | glew | ||
| 1091 | glm | ||
| 1092 | hicolor-icon-theme | ||
| 1093 | libngspice | ||
| 1094 | libsm | ||
| 1095 | libgit2 | ||
| 1096 | libsecret | ||
| 1097 | mesa | ||
| 1098 | opencascade-occt | ||
| 1099 | openssl | ||
| 1100 | python-wrapper | ||
| 1101 | gtk+ | ||
| 1102 | wxwidgets-sans-egl | ||
| 1103 | nng | ||
| 1104 | python-wxpython | ||
| 1105 | protobuf | ||
| 1106 | gdk-pixbuf | ||
| 1107 | (list zstd "lib"))) | ||
| 1108 | (home-page "https://www.kicad.org/") | ||
| 1109 | (synopsis "Electronics Design Automation Suite") | ||
| 1110 | (description | ||
| 1111 | "Kicad is a program for the formation of printed circuit | ||
| 1112 | boards and electrical circuits. The software has a number of programs that | ||
| 1113 | perform specific functions, for example, pcbnew (Editing PCB), eeschema (editing | ||
| 1114 | electrical diagrams), gerbview (viewing Gerber files) and others.") | ||
| 1115 | (license license:gpl3+))) | ||
| 1116 | |||
| 1117 | (define-public kicad-doc | ||
| 1118 | (package | ||
| 1119 | (name "kicad-doc") | ||
| 1120 | (version (package-version kicad)) | ||
| 1121 | (source (origin | ||
| 1122 | (method git-fetch) | ||
| 1123 | (uri (git-reference | ||
| 1124 | (url "https://gitlab.com/kicad/services/kicad-doc.git") | ||
| 1125 | (commit version))) | ||
| 1126 | (file-name (git-file-name name version)) | ||
| 1127 | (sha256 | ||
| 1128 | (base32 | ||
| 1129 | "07g80p1igp8j3kh3qpmqd150i9950w1143yhncwik2ypccwjdfjy")))) | ||
| 1130 | (build-system cmake-build-system) | ||
| 1131 | (arguments | ||
| 1132 | `(#:configure-flags (list "-DBUILD_FORMATS=html") | ||
| 1133 | #:tests? #f)) ;no test suite | ||
| 1134 | (native-inputs (list asciidoc | ||
| 1135 | gettext-minimal | ||
| 1136 | git-minimal | ||
| 1137 | perl | ||
| 1138 | perl-unicode-linebreak | ||
| 1139 | perl-yaml-tiny | ||
| 1140 | po4a | ||
| 1141 | ruby-asciidoctor/minimal | ||
| 1142 | source-highlight)) | ||
| 1143 | (home-page "https://kicad.org") | ||
| 1144 | (synopsis "KiCad official documentation") | ||
| 1145 | (description "This repository contains the official KiCad documentation.") | ||
| 1146 | (license license:gpl3+))) | ||
| 1147 | |||
| 1148 | (define-public kicad-symbols | ||
| 1149 | (package | ||
| 1150 | (name "kicad-symbols") | ||
| 1151 | (version (package-version kicad)) | ||
| 1152 | (source (origin | ||
| 1153 | (method git-fetch) | ||
| 1154 | (uri (git-reference | ||
| 1155 | (url "https://gitlab.com/kicad/libraries/kicad-symbols.git") | ||
| 1156 | (commit version))) | ||
| 1157 | (file-name (git-file-name name version)) | ||
| 1158 | (sha256 | ||
| 1159 | (base32 | ||
| 1160 | "08qb4rqxsyhrcvj1k200m2c06jjy7jwjmf9n1qkcm0biqqc5dba4")))) | ||
| 1161 | (build-system cmake-build-system) | ||
| 1162 | (arguments | ||
| 1163 | `(#:tests? #f)) ; no tests exist | ||
| 1164 | (home-page (package-home-page kicad)) | ||
| 1165 | (synopsis "Official KiCad schematic symbol libraries") | ||
| 1166 | (description "This package contains the official KiCad schematic symbol | ||
| 1167 | libraries.") | ||
| 1168 | ;; TODO: Exception: "To the extent that the creation of electronic designs | ||
| 1169 | ;; that use 'Licensed Material' can be considered to be 'Adapted Material', | ||
| 1170 | ;; then the copyright holder waives article 3 of the license with respect to | ||
| 1171 | ;; these designs and any generated files which use data provided as part of | ||
| 1172 | ;; the 'Licensed Material'." | ||
| 1173 | ;; See <https://github.com/KiCad/kicad-symbols/blob/master/LICENSE.md>. | ||
| 1174 | (license license:cc-by-sa4.0))) | ||
| 1175 | |||
| 1176 | (define-public kicad-footprints | ||
| 1177 | (package | ||
| 1178 | (inherit kicad-symbols) | ||
| 1179 | (name "kicad-footprints") | ||
| 1180 | (version (package-version kicad)) | ||
| 1181 | (source (origin | ||
| 1182 | (method git-fetch) | ||
| 1183 | (uri (git-reference | ||
| 1184 | (url "https://gitlab.com/kicad/libraries/kicad-footprints.git") | ||
| 1185 | (commit version))) | ||
| 1186 | (file-name (git-file-name name version)) | ||
| 1187 | (sha256 | ||
| 1188 | (base32 | ||
| 1189 | "1w7dkb93s84ymi1syxpzacbmkxlnlh0k4z1c62nabspb901nn524")))) | ||
| 1190 | (synopsis "Official KiCad footprint libraries") | ||
| 1191 | (description "This package contains the official KiCad footprint libraries."))) | ||
| 1192 | |||
| 1193 | (define-public kicad-packages3d | ||
| 1194 | (package | ||
| 1195 | (inherit kicad-symbols) | ||
| 1196 | (name "kicad-packages3d") | ||
| 1197 | (version (package-version kicad)) | ||
| 1198 | (source (origin | ||
| 1199 | (method git-fetch) | ||
| 1200 | (uri (git-reference | ||
| 1201 | (url "https://gitlab.com/kicad/libraries/kicad-packages3D.git") | ||
| 1202 | (commit version))) | ||
| 1203 | (file-name (git-file-name name version)) | ||
| 1204 | (sha256 | ||
| 1205 | (base32 | ||
| 1206 | "1j26dmgz7xfixlqrzclb1wpc6zkd10n1fq7rmdrgwwx083p3c7a8")))) | ||
| 1207 | (synopsis "Official KiCad 3D model libraries") | ||
| 1208 | (description "This package contains the official KiCad 3D model libraries."))) | ||
| 1209 | |||
| 1210 | (define-public kicad-templates | ||
| 1211 | (package | ||
| 1212 | (inherit kicad-symbols) | ||
| 1213 | (name "kicad-templates") | ||
| 1214 | (version (package-version kicad)) | ||
| 1215 | (source (origin | ||
| 1216 | (method git-fetch) | ||
| 1217 | (uri (git-reference | ||
| 1218 | (url "https://gitlab.com/kicad/libraries/kicad-templates.git") | ||
| 1219 | (commit version))) | ||
| 1220 | (file-name (git-file-name name version)) | ||
| 1221 | (sha256 | ||
| 1222 | (base32 | ||
| 1223 | "0zs29zn8qjgxv0w1vyr8yxmj02m8752zagn4vcraqgik46dwg2id")))) | ||
| 1224 | (synopsis "Official KiCad project and worksheet templates") | ||
| 1225 | (description "This package contains the official KiCad project and | ||
| 1226 | worksheet templates."))) | ||
| 1227 | |||
| 1228 | (define-public librseq | 1001 | (define-public librseq |
| 1229 | ;; There's no release. | 1002 | ;; There's no release. |
| 1230 | (let ((commit "c3ed6b64bbe1944bd8de8b9fde14e7c290f02a90") | 1003 | (let ((commit "c3ed6b64bbe1944bd8de8b9fde14e7c290f02a90") |
