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
parent
38b46a3e32
commit
72099cb0f2
|
@ -2312,6 +2312,15 @@ full programmatic control over your models.")
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/FreeCAD/FreeCAD.git")
|
(url "https://github.com/FreeCAD/FreeCAD.git")
|
||||||
(commit version)))
|
(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))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
|
|
Reference in New Issue