From 848126d0086585768a14be13d286f938ebc6e460 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 14 May 2021 17:10:56 +0200 Subject: gnu: prinseq: Fix references to perl executable. * gnu/packages/bioinformatics.scm (prinseq)[arguments]: Embed concrete references to the "perl" executable. --- gnu/packages/bioinformatics.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 9c0e18591f..7da5d54247 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -7617,14 +7617,18 @@ experience substantial biological insertions and deletions.") (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) -- cgit v1.2.3