mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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>
This commit is contained in:
parent
38b46a3e32
commit
72099cb0f2
1 changed files with 9 additions and 0 deletions
|
@ -2312,6 +2312,15 @@ (define-public freecad
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue