From 2dfb781a7f9292cc171e4063b0fd746244381566 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 24 Sep 2023 17:15:37 +0300 Subject: vg: Link with some shared libraries. --- gn/packages/bioinformatics.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gn') 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) -- cgit v1.2.3