gnu: prinseq: Fix references to perl executable.

* gnu/packages/bioinformatics.scm (prinseq)[arguments]: Embed concrete
references to the "perl" executable.
This commit is contained in:
Ricardo Wurmus 2021-05-14 17:10:56 +02:00
parent 6755408927
commit 848126d008
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7617,14 +7617,18 @@ (define-public prinseq
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(bin (string-append out "/bin"))
(scripts (find-files "." "prinseq.*.pl")))
(substitute* scripts
(("\"perl -pe")
(string-append "\"" (which "perl") " -pe")))
(for-each (lambda (file)
(chmod file #o555)
(install-file file bin)
(wrap-script (string-append bin "/" (basename file))
`("PERL5LIB" ":" prefix
(,(getenv "PERL5LIB")))))
(find-files "." "prinseq.*.pl"))))))))
scripts)))))))
(inputs
`(("guile" ,guile-3.0) ; for wrapper scripts
("perl" ,perl)