diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index b1a02f8f9e2..b3a1bffda9c 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2024 Juliana Sims ;;; Copyright © 2025 Cayetano Santos ;;; Copyright © 2025 Sharlatan Hellseher +;;; Copyright © 2022 Konstantinos Agiannis ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,6 +50,7 @@ #:use-module (gnu packages flex) #:use-module (gnu packages fontutils) #:use-module (gnu packages fpga) + #:use-module (gnu packages gawk) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages graphviz) @@ -74,6 +76,7 @@ #:use-module (gnu packages tls) #:use-module (gnu packages toolkits) #:use-module (gnu packages version-control) + #:use-module (gnu packages xorg) #:use-module (gnu packages xml)) (define-public comedilib @@ -793,6 +796,47 @@ design.") to enforce it.") (license license:gpl3+))) +(define-public xschem + (package + (name "xschem") + (version "3.4.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/StefanSchippers/xschem") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0g9qrzm2mjd7nfg8iyc5az2bs8n5gjv1mrjjdja5vn1yjia7pvy9")))) + (native-inputs (list flex bison pkg-config)) + (inputs (list gawk + tcl + tk + libxpm + cairo + libxrender + libxcb)) ; Last 3 are optional, but good to have. + (build-system gnu-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'setenv + (lambda* (#:key outputs #:allow-other-keys) + (setenv "CC" #$(cc-for-target)) + (invoke "./configure" (string-append "--prefix=" #$output))))))) + (synopsis "Hierarchical schematic editor") + (description + "Xschem is an X11 schematic editor written in C and focused on +hierarchical and parametric design. It can generate VHDL, Verilog or Spice +netlists from the drawn schematic, allowing the simulation of the circuit.") + (home-page "https://xschem.sourceforge.io/stefan/index.html") + (license license:gpl2+))) + (define-public sigrok-cli (package (name "sigrok-cli") diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 20c7f777e6b..780fcea505f 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -31,7 +31,6 @@ ;;; Copyright © 2022 Olivier Dion ;;; Copyright © 2022 Peter Polidoro ;;; Copyright © 2022 Malte Frank Gerdes -;;; Copyright © 2022 Konstantinos Agiannis ;;; Copyright © 2022 Greg Hogan ;;; Copyright © 2022, 2024, 2025 Artyom V. Poptsov ;;; Copyright © 2022, 2025 Maxim Cournoyer @@ -5165,47 +5164,6 @@ python bindings. It belongs to the Cura project from Ultimaker.") generates G-Code for 3D printers.") (license license:lgpl3+))) -(define-public xschem - (package - (name "xschem") - (version "3.4.7") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/StefanSchippers/xschem") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0g9qrzm2mjd7nfg8iyc5az2bs8n5gjv1mrjjdja5vn1yjia7pvy9")))) - (native-inputs (list flex bison pkg-config)) - (inputs (list gawk - tcl - tk - libxpm - cairo - libxrender - libxcb)) ; Last 3 are optional, but good to have. - (build-system gnu-build-system) - (arguments - (list - #:tests? #f - #:phases - #~(modify-phases %standard-phases - (delete 'configure) - (add-before 'build 'setenv - (lambda* (#:key outputs #:allow-other-keys) - (setenv "CC" #$(cc-for-target)) - (invoke "./configure" (string-append "--prefix=" #$output))))))) - (synopsis "Hierarchical schematic editor") - (description - "Xschem is an X11 schematic editor written in C and focused on -hierarchical and parametric design. It can generate VHDL, Verilog or Spice -netlists from the drawn schematic, allowing the simulation of the circuit.") - (home-page "https://xschem.sourceforge.io/stefan/index.html") - (license license:gpl2+))) - (define-public bcnc (package (name "bcnc")