[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: kicad: Fix ngspice support.
From: |
guix-commits |
Subject: |
branch master updated: gnu: kicad: Fix ngspice support. |
Date: |
Thu, 20 May 2021 17:45:55 -0400 |
This is an automated email from the git hooks/post-receive script.
glv pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new f7d2ae5 gnu: kicad: Fix ngspice support.
f7d2ae5 is described below
commit f7d2ae57543ae6afe14434877d7480b15dcbb5b7
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Thu May 20 23:35:48 2021 +0200
gnu: kicad: Fix ngspice support.
Fixes <https://bugs.gnu.org/48336>.
* gnu/packages/engineering.scm (kicad)[arguments]: Add
'fix-ngspice-detection'
phase.
---
gnu/packages/engineering.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index b053d0e..5a97d25 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -23,6 +23,7 @@
;;; Copyright © 2020, 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2021 qblade <qblade@protonmail.com>
;;; Copyright © 2021 Gerd Heber <gerd.heber@gmail.com>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -923,6 +924,13 @@ Emacs).")
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-ngspice-detection
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "eeschema/CMakeLists.txt"
+ (("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"")
+ (string-append "NGSPICE_DLL_FILE=\""
+ (assoc-ref inputs "libngspice")
+ "/lib/libngspice.so\"")))))
(add-after 'install 'install-translations
(lambda* (#:key inputs outputs #:allow-other-keys)
(copy-recursively (assoc-ref inputs "kicad-i18n")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: kicad: Fix ngspice support.,
guix-commits <=