me
/
guix
Archived
1
0
Fork 0

gnu: sailfish: Do not attempt to unpack a directory.

patch-and-repack no longer outputs a compressed archive when the input was a
directory.

* gnu/packages/bioinformatics.scm (sailfish)[arguments]: Adjust build phase
'prepare-rapmap.
master
Ricardo Wurmus 2021-10-24 21:35:57 +00:00
parent 57c233b37b
commit 4392783232
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 2 additions and 8 deletions

View File

@ -9581,18 +9581,12 @@ dependency like SeqAn.")
(let ((src "external/install/src/rapmap/")
(include "external/install/include/rapmap/")
(rapmap (assoc-ref inputs "rapmap")))
(mkdir-p "/tmp/rapmap")
(invoke "tar" "xf"
(assoc-ref inputs "rapmap")
"-C" "/tmp/rapmap"
"--strip-components=1")
(mkdir-p src)
(mkdir-p include)
(for-each (lambda (file)
(install-file file src))
(find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
(copy-recursively "/tmp/rapmap/include" include))
#t))
(find-files (string-append rapmap "/src") "\\.(c|cpp)"))
(copy-recursively (string-append rapmap "/include") include))))
(add-after 'unpack 'use-system-libraries
(lambda* (#:key inputs #:allow-other-keys)
(substitute* '("src/SailfishIndexer.cpp"