From a295df1e9e233df66e4e70b55af01909c5cc9b06 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 24 Sep 2023 13:06:48 +0300 Subject: smoothxg: Link with sdsl-lite --- gn/packages/bioinformatics.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gn') diff --git a/gn/packages/bioinformatics.scm b/gn/packages/bioinformatics.scm index a043358..c833e6a 100644 --- a/gn/packages/bioinformatics.scm +++ b/gn/packages/bioinformatics.scm @@ -1705,6 +1705,19 @@ dictionaries to record a queryable version of the graph.") #~(list (string-append "CC = " #$(cc-for-target))) #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'link-with-some-shared-libraries + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("CMakeLists.txt" + "deps/mmmulti/CMakeLists.txt" + "deps/odgi/deps/mmmulti/CMakeLists.txt") + (("\".*libsdsl\\.a\"") "\"-lsdsl\"") + (("\".*libdivsufsort\\.a\"") "\"-ldivsufsort\"") + (("\".*libdivsufsort64\\.a\"") "\"-ldivsufsort64\"") + (("\\$\\{sdsl-lite_INCLUDE\\}") + (search-input-directory inputs "/include/sdsl")) + (("\\$\\{sdsl-lite-divsufsort_INCLUDE\\}") + (dirname + (search-input-file inputs "/include/divsufsort.h")))))) (add-before 'build 'build-abPOA (lambda* (#:key make-flags #:allow-other-keys) ;; This helps with portability to other architectures. @@ -1715,9 +1728,11 @@ dictionaries to record a queryable version of the graph.") (apply invoke "make" "libabpoa" make-flags))))))) (inputs (list jemalloc + libdivsufsort openmpi pybind11 python + sdsl-lite zlib (list zstd "lib"))) (native-inputs -- cgit v1.2.3