me
/
guix
Archived
1
0
Fork 0

gnu: freecad: Wrap with GUIX_PYTHONPATH.

* gnu/packages/engineering.scm (freecad)
[phases]{restore-pythonpath}: Delete phase.
{wrap-pythonpath}: Replace PYTHONPATH with GUIX_PYTHONPATH.
master
Maxim Cournoyer 2021-01-27 21:16:22 -05:00
parent 6275b9bc2e
commit 8454438e05
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 2 additions and 8 deletions

View File

@ -2591,18 +2591,12 @@ full programmatic control over your models.")
"/include/shiboken2"))
#:phases
(modify-phases %standard-phases
(add-before 'configure 'restore-pythonpath
(lambda _
(substitute* "src/Main/MainGui.cpp"
(("_?putenv\\(\"PYTHONPATH=\"\\);") ""))
#t))
(add-after 'install 'wrap-pythonpath
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/FreeCAD")
(list "PYTHONPATH"
'prefix (list (getenv "GUIX_PYTHONPATH")))))
#t)))))
(list "GUIX_PYTHONPATH"
'prefix (list (getenv "GUIX_PYTHONPATH"))))))))))
(home-page "https://www.freecadweb.org/")
(synopsis "Your Own 3D Parametric Modeler")
(description