me
/
guix
Archived
1
0
Fork 0

gnu: freecad: Fix build with python-3.8

* gnu/packages/engineering.scm (freecad)[source](modules, snippet): New fields.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
master
Boris A. Dekshteyn 2020-05-10 22:23:18 +12:00 committed by Marius Bakke
parent 38b46a3e32
commit 72099cb0f2
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 9 additions and 0 deletions

View File

@ -2312,6 +2312,15 @@ full programmatic control over your models.")
(uri (git-reference
(url "https://github.com/FreeCAD/FreeCAD.git")
(commit version)))
(modules '((guix build utils)))
(snippet
'(begin
;; Fix build with Python 3.8, see
;; <https://tracker.freecadweb.org/view.php?id=4143>.
(substitute* "src/Base/swigpyrun.inl"
(("PyObject \\*modules = interp->modules;")
"PyObject *modules = PyEval_GetBuiltins();"))
#t))
(file-name (git-file-name name version))
(sha256
(base32