summaryrefslogtreecommitdiff
path: root/gnu/packages/bioinformatics.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-04-12 00:17:11 +0200
committerAndreas Enge <andreas@enge.fr>2026-08-06 19:58:08 +0200
commit652d4e544412f5d5b1cd650b085c8f04c01a0b0d (patch)
tree544efa51b05cac4ca013429681d75671ecbbbc0b /gnu/packages/bioinformatics.scm
parent14f02f37356d0132c61e3743a6098a0d91328548 (diff)
gnu: hisat2: Improve style.
* gnu/packages/bioinformatics.scm (hisat2) [arguments]: Run guix style, use G-expressions. <#:make-flags>: Use cc-for-target and cxx-for-target. <#:phases>: Modernize and rewrite 'install phase. [inputs]: Drop input labels. Change-Id: I3fc648a5351a0649ba53b4302e34a576a03de6e6 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/bioinformatics.scm')
-rw-r--r--gnu/packages/bioinformatics.scm55
1 files changed, 28 insertions, 27 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 7d63a204788..69eee797e3d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -8611,38 +8611,39 @@ particular, reads spanning multiple exons.")
8611 "1q60a8r8vgnpyn1ivrw9yp89awbdwi85k8hisy8lyvdpgrxwxgji")))) 8611 "1q60a8r8vgnpyn1ivrw9yp89awbdwi85k8hisy8lyvdpgrxwxgji"))))
8612 (build-system gnu-build-system) 8612 (build-system gnu-build-system)
8613 (arguments 8613 (arguments
8614 `(#:tests? #f ; no check target 8614 (list
8615 #:make-flags (list "CC=gcc" "CXX=g++" "allall") 8615 #:tests? #f ; no check target
8616 #:modules ((guix build gnu-build-system) 8616 #:make-flags
8617 #~(list (string-append "CC=" #$(cc-for-target))
8618 (string-append "CXX=" #$(cxx-for-target))
8619 "allall")
8620 #:modules `((guix build gnu-build-system)
8617 (guix build utils) 8621 (guix build utils)
8618 (srfi srfi-26)) 8622 (srfi srfi-26))
8619 #:phases 8623 #:phases
8620 (modify-phases %standard-phases 8624 #~(modify-phases %standard-phases
8621 (add-after 'unpack 'make-deterministic 8625 (add-after 'unpack 'make-deterministic
8622 (lambda _ 8626 (lambda _
8623 (substitute* "Makefile" 8627 (substitute* "Makefile"
8624 (("`hostname`") "guix") 8628 (("`hostname`") "guix")
8625 (("`date`") "0")))) 8629 (("`date`") "0"))))
8626 (delete 'configure) 8630 (delete 'configure)
8627 (add-before 'build 'build-manual 8631 (add-before 'build 'build-manual
8628 (lambda _ 8632 (lambda _
8629 (mkdir-p "doc") 8633 (mkdir-p "doc")
8630 (invoke "make" "doc"))) 8634 (invoke "make" "doc")))
8631 (replace 'install 8635 (replace 'install
8632 (lambda* (#:key outputs #:allow-other-keys) 8636 (lambda _
8633 (let* ((out (assoc-ref outputs "out")) 8637 (for-each
8634 (bin (string-append out "/bin/")) 8638 (cute install-file <> (string-append #$output "/bin/"))
8635 (doc (string-append out "/share/doc/hisat2/"))) 8639 (find-files "."
8636 (for-each 8640 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
8637 (cut install-file <> bin) 8641 (install-file "doc/manual.inc.html"
8638 (find-files "." 8642 (string-append #$output "/share/doc/hisat2/")))))))
8639 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
8640 (mkdir-p doc)
8641 (install-file "doc/manual.inc.html" doc)))))))
8642 (native-inputs 8643 (native-inputs
8643 (list perl pandoc)) ; for documentation 8644 (list perl pandoc)) ; for documentation
8644 (inputs 8645 (inputs
8645 `(("python" ,python-wrapper))) 8646 (list python-wrapper))
8646 ;; Non-portable instructions are used so building fails on other platforms 8647 ;; Non-portable instructions are used so building fails on other platforms
8647 ;; There is an open PR to address this issue: 8648 ;; There is an open PR to address this issue:
8648 ;; https://github.com/DaehwanKimLab/hisat2/pull/251 8649 ;; https://github.com/DaehwanKimLab/hisat2/pull/251