summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-12-07 17:53:14 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-12-07 17:53:14 +0100
commitb764d10e9185cb6a250c94c487e8c5f35078c13b (patch)
treed1dd973249a8e81685369240be29e370fe59a82d
parent4195a877cb2e1660b70ed73990f3dc371324b988 (diff)
downloadguix-b764d10e9185cb6a250c94c487e8c5f35078c13b.tar.gz
gnu: bwa-pssm: Fix build.
* gnu/packages/bioinformatics.scm (bwa-pssm)[arguments]: Add phase
'patch-C-error.
-rw-r--r--gnu/packages/bioinformatics.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 8ca3d120c4..50f1a182e7 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2243,6 +2243,14 @@ and more accurate.  BWA-MEM also has better performance than BWA-backtrack for
                (base32
                 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
     (build-system gnu-build-system)
+    (arguments
+     (substitute-keyword-arguments (package-arguments bwa)
+       ((#:phases phases '%standard-phases)
+        `(modify-phases ,phases
+           (add-after 'unpack 'patch-C-error
+             (lambda _
+               (substitute* "pssm.c"
+                 (("inline int map") "int map"))))))))
     (inputs
      `(("gdsl" ,gdsl)
        ("zlib" ,zlib)