diff options
author | David Thompson <dthompson2@worcester.edu> | 2024-04-17 18:50:49 -0400 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-04-21 11:52:56 +0800 |
commit | 1d6811cec316910c360aa3bedbb3fc1b68e7000e (patch) | |
tree | e68686c0cd9420e62683bd27da45bd41173f55b1 /gnu/packages | |
parent | 38b88d710ea13ba024aed0543bc2862772cdb645 (diff) | |
download | guix-1d6811cec316910c360aa3bedbb3fc1b68e7000e.tar.gz guix-1d6811cec316910c360aa3bedbb3fc1b68e7000e.zip |
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/graphics.scm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 3571a45b84..23f0e54b34 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -544,9 +544,18 @@ typically encountered in feature film production.") (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 |