gnu: prank: Bind INPUTS in 'install phase.

* gnu/packages/bioinformatics.scm (prank)[arguments]: Bind INPUTS in 'install
phase to remove references to %build-inputs.
This commit is contained in:
Ricardo Wurmus 2021-12-04 15:11:28 +01:00
parent e128839a94
commit 09ae51f7b8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -5788,14 +5788,14 @@ (define-public prank
(("-m64") ""))))
(delete 'configure)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(man (string-append out "/share/man/man1"))
(path (string-append
(assoc-ref %build-inputs "mafft") "/bin:"
(assoc-ref %build-inputs "exonerate") "/bin:"
(assoc-ref %build-inputs "bppsuite") "/bin")))
(assoc-ref inputs "mafft") "/bin:"
(assoc-ref inputs "exonerate") "/bin:"
(assoc-ref inputs "bppsuite") "/bin")))
(install-file "prank" bin)
(wrap-program (string-append bin "/prank")
`("PATH" ":" prefix (,path)))