mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 05:07:11 -05:00
gnu: nanopolish: Set #:guile argument of 'wrap-script'.
* gnu/packages/bioinformatics.scm (nanopolish)[arguments]<#:phases>{wrap-programs}: Set #:guile argument of ‘wrap-script’. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2d092a2afa
commit
b2459387b9
1 changed files with 5 additions and 3 deletions
|
@ -13583,16 +13583,18 @@ (define-public nanopolish
|
||||||
(find-files "scripts" ".*"))
|
(find-files "scripts" ".*"))
|
||||||
#t)))
|
#t)))
|
||||||
(add-after 'install 'wrap-programs
|
(add-after 'install 'wrap-programs
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((pythonpath (getenv "GUIX_PYTHONPATH"))
|
(let ((pythonpath (getenv "GUIX_PYTHONPATH"))
|
||||||
(perl5lib (getenv "PERL5LIB"))
|
(perl5lib (getenv "PERL5LIB"))
|
||||||
(scripts (string-append (assoc-ref outputs "out")
|
(scripts (string-append (assoc-ref outputs "out")
|
||||||
"/share/nanopolish/scripts")))
|
"/share/nanopolish/scripts"))
|
||||||
|
(guile (search-input-file inputs "bin/guile")))
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(wrap-program file `("GUIX_PYTHONPATH" ":" prefix (,pythonpath))))
|
(wrap-program file `("GUIX_PYTHONPATH" ":" prefix (,pythonpath))))
|
||||||
(find-files scripts "\\.py"))
|
(find-files scripts "\\.py"))
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(wrap-script file `("PERL5LIB" ":" prefix (,perl5lib))))
|
(wrap-script file #:guile guile
|
||||||
|
`("PERL5LIB" ":" prefix (,perl5lib))))
|
||||||
(find-files scripts "\\.pl"))))))))
|
(find-files scripts "\\.pl"))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("guile" ,guile-3.0) ; for wrappers
|
`(("guile" ,guile-3.0) ; for wrappers
|
||||||
|
|
Loading…
Reference in a new issue