mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: blender: Add wrap-bin phase.
* gnu/packages/graphics.scm (blender)[arguments]: Add wrap-bin phase to set proper GUIX_PYTHONPATH. [inputs]: Add bash-minimal per 'guix lint'. Change-Id: I435957baf181ef7f92d4160529439357e16714f6 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
This commit is contained in:
parent
38b88d710e
commit
1d6811cec3
1 changed files with 11 additions and 2 deletions
|
@ -544,9 +544,18 @@ (define-public blender
|
|||
(string-append "-DPYTHON_NUMPY_PATH="
|
||||
(assoc-ref %build-inputs "python-numpy")
|
||||
"/lib/python" #$python-version
|
||||
"/site-packages/")))))
|
||||
"/site-packages/")))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-bin
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(python-path (getenv "GUIX_PYTHONPATH")))
|
||||
(wrap-program (string-append out "/bin/blender")
|
||||
`("GUIX_PYTHONPATH" ":" prefix (,python-path)))))))))
|
||||
(inputs
|
||||
(list boost
|
||||
(list bash-minimal
|
||||
boost
|
||||
bullet
|
||||
eigen
|
||||
embree
|
||||
|
|
Loading…
Reference in a new issue