aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2023-09-24 17:15:37 +0300
committerEfraim Flashner2023-09-25 20:10:12 +0300
commit2dfb781a7f9292cc171e4063b0fd746244381566 (patch)
treeb4daa394a45c6802d7332197cbaab5463364a867 /gn
parent5676b7bb6c6d80a9364c61260aa7aaa2b4baf21e (diff)
downloadguix-bioinformatics-2dfb781a7f9292cc171e4063b0fd746244381566.tar.gz
vg: Link with some shared libraries.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/bioinformatics.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/gn/packages/bioinformatics.scm b/gn/packages/bioinformatics.scm
index 89766bb..afffcd4 100644
--- a/gn/packages/bioinformatics.scm
+++ b/gn/packages/bioinformatics.scm
@@ -2372,6 +2372,20 @@ in-memory footprint at the cost of packing and unpacking.")
(string-append " " (assoc-ref inputs "raptor2") "/lib/libraptor2.so"))
((" \\$\\(BIN_DIR\\)/rapper")
(string-append " " (assoc-ref inputs "raptor2") "/bin/rapper")))))
+ (add-after 'unpack 'link-with-some-shared-libraries
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* '("deps/mmmultimap/CMakeLists.txt"
+ "deps/xg/CMakeLists.txt"
+ "deps/xg/deps/mmmulti/CMakeLists.txt")
+ (("\".*libsdsl\\.a\"") "\"-lsdsl\"")
+ (("\".*libdivsufsort\\.a\"") "\"-ldivsufsort\"")
+ (("\".*libdivsufsort64\\.a\"") "\"-ldivsufsort64\"")
+ (("\\$\\{sdsl-lite_INCLUDE\\}")
+ (string-append (assoc-ref inputs "sdsl-lite")
+ "/include/sdsl"))
+ (("\\$\\{sdsl-lite-divsufsort_INCLUDE\\}")
+ (string-append (assoc-ref inputs "libdivsufsort")
+ "/include")))))
#;
(add-before 'patch-source 'use-shared-libvg
(lambda* (#:key inputs outputs #:allow-other-keys)