ekaitz pushed a commit to branch master
in repository guix.

commit 3bf7a0e8c431abfcba51806ee2a3eea9e0865472
Author: Ekaitz Zarraga <[email protected]>
AuthorDate: Tue Mar 11 00:12:44 2025 +0100

    gnu: ngspice: Add X11 support (plots) to ngspice
    
    * gnu/packages/engineering.scm (libngspice)[inputs]: Remove libxau.
    (ngspice)[inputs]: Add libxau and libx11.
    [arguments]<#:configure-flags>: Add --with-x and --enable-rpath.
    <#:tests?>: Disable because it tests against a running X server.
    
    Change-Id: I00e8766947d2c5dfea20d42e3eb02b0e9e15879a
---
 gnu/packages/engineering.scm | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index c63e332121..625ddc8030 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2263,7 +2263,7 @@ high-performance parallel differential evolution (DE) 
optimization algorithm.")
       #:configure-flags #~(list "--enable-openmp" "--enable-cider"
                                 "--enable-xspice" "--with-ngshared")))
     (native-inputs (list bison flex))
-    (inputs (list libxaw openmpi))
+    (inputs (list openmpi))
     (home-page "https://ngspice.sourceforge.net/";)
     (synopsis "Mixed-level/mixed-signal circuit simulator")
     (description
@@ -2282,19 +2282,16 @@ an embedded event driven algorithm.")
     (inherit libngspice)
     (name "ngspice")
     (arguments
-     (substitute-keyword-arguments
-       (strip-keyword-arguments
-         (list #:tests?)
-         (package-arguments libngspice))
+     (substitute-keyword-arguments (package-arguments libngspice)
+       ;; Tests require a X server running, so we keep them disabled
        ((#:configure-flags flags)
-        #~(cons "--with-readline=yes"
-                (delete "--with-ngshared"
-                        #$flags)))
+        #~(cons*  "--enable-rpath" "--with-x" "--with-readline=yes"
+                 (delete "--with-ngshared" #$flags)))
        ((#:phases phases)
         #~(modify-phases #$phases
             (delete 'delete-scripts)))))
     (native-inputs (list perl))
-    (inputs (list libngspice readline))))
+    (inputs (list libngspice readline libxaw libx11))))
 
 (define trilinos-serial-xyce
   ;; Note: This is a Trilinos containing only the packages Xyce needs, so we

Reply via email to