* [bug#55129] [PATCH] gnu: Add xschem
@ 2022-04-26 11:27 Konstantinos Agiannis
2022-05-02 16:02 ` bug#55129: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Konstantinos Agiannis @ 2022-04-26 11:27 UTC (permalink / raw)
To: 55129
---
gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 1c945eb07b..ec58a92451 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -31,6 +31,7 @@
;;; Copyright © 2022 Olivier Dion <olivier.dion@polymtl.ca>
;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
+;;; Copyright © 2022 Konstantinos Agiannis <agiannis.kon@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -78,6 +79,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
#:use-module (gnu packages curl)
+ #:use-module (gnu packages gawk)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages digest)
#:use-module (gnu packages docbook)
@@ -3659,3 +3661,47 @@ python bindings. It belongs to the Cura project from Ultimaker.")
(description "Cura is a slicing software from Ultimaker. A @emph{slicer}
generates G-Code for 3D printers.")
(license license:lgpl3+)))
+
+(define-public xschem
+ (let ((commit "f574539e21b297fa3bcebd52114555e162a5fc56")
+ (revision "1"))
+ (package
+ (name "xschem")
+ (version (git-version "3.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/StefanSchippers/xschem")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "129kj8m3wcf62plp74kml6pqwld4lnfmxy070a82lvj0rfiy77hb"))))
+ (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
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'setenv
+ (lambda _
+ (setenv "CC"
+ ,(cc-for-target))
+ (invoke "./configure"
+ (string-append "--prefix="
+ (assoc-ref %outputs "out"))) #t)))))
+ (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+))))
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#55129: [PATCH] gnu: Add xschem
2022-04-26 11:27 [bug#55129] [PATCH] gnu: Add xschem Konstantinos Agiannis
@ 2022-05-02 16:02 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-05-02 16:02 UTC (permalink / raw)
To: Konstantinos Agiannis; +Cc: 55129-done
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
Hi,
Konstantinos Agiannis <agiannis.kon@gmail.com> skribis:
> ---
> gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
Pushed with a commit log and the cosmetic changes below.
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 916 bytes --]
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 9d06b77c27..0ef1870a50 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3692,12 +3692,11 @@ (define-public xschem
(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'setenv
- (lambda _
- (setenv "CC"
- ,(cc-for-target))
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "CC" ,(cc-for-target))
(invoke "./configure"
(string-append "--prefix="
- (assoc-ref %outputs "out"))) #t)))))
+ (assoc-ref outputs "out"))))))))
(synopsis "Hierarchical schematic editor")
(description
"Xschem is an X11 schematic editor written in C and focused on
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-02 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 11:27 [bug#55129] [PATCH] gnu: Add xschem Konstantinos Agiannis
2022-05-02 16:02 ` bug#55129: " Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.