gnu: vapoursynth: Wrap with own PYTHONPATH.
This fixes, e.g., ‘vspipe -v’ in a pure environment. * gnu/packages/video.scm (vapoursynth)[arguments]: Add a 'wrap phase. Reported by maddo of #guix.
This commit is contained in:
parent
ae303853d4
commit
c00b1760f6
1 changed files with 12 additions and 0 deletions
|
@ -2817,6 +2817,18 @@ capabilities.")
|
||||||
(base32
|
(base32
|
||||||
"1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
|
"1krfdzc2x2vxv4nq9kiv1c09hgj525qn120ah91fw2ikq8ldvmx4"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(site (string-append out "/lib/python"
|
||||||
|
,(version-major+minor
|
||||||
|
(package-version python))
|
||||||
|
"/site-packages")))
|
||||||
|
(wrap-program (string-append out "/bin/vspipe")
|
||||||
|
`("PYTHONPATH" ":" = (,site)))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("autoconf" ,autoconf)
|
`(("autoconf" ,autoconf)
|
||||||
("automake" ,automake)
|
("automake" ,automake)
|
||||||
|
|
Reference in a new issue