gnu: salmon: Update to 1.9.0.

* gnu/packages/bioinformatics.scm (salmon): Update to 1.9.0.
[arguments]: Remove -DTBB_LIBRARIES from configure flags; copy pufferfish
itlib headers.
[inputs]: Use new label-less list; move pufferfish origin from here...
[native-inputs]: ...to here.
This commit is contained in:
Ricardo Wurmus 2022-09-30 22:43:21 +02:00
parent 729ce5fcf8
commit 1266b9ed11
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -10296,7 +10296,7 @@ (define libstadenio-for-salmon
(define-public salmon
(package
(name "salmon")
(version "1.6.0")
(version "1.9.0")
(source (origin
(method git-fetch)
(uri (git-reference
@ -10305,25 +10305,25 @@ (define-public salmon
(file-name (git-file-name name version))
(sha256
(base32
"1wb5wl0rc77svbwq6zvak5h7pf9acw3di0vz5i3gqyhg5l6qd736"))
"1370ry3jpj05gplzyny44mqg77a29a6gp8ijmjz135d2igf956r8"))
(modules '((guix build utils)))
(snippet
;; Delete bundled headers for eigen3.
'(delete-file-recursively "include/eigen3/"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags
,#~(list (string-append "-Dlibgff_DIR="
(list
#:configure-flags
#~(list (string-append "-Dlibgff_DIR="
#$(this-package-input "libgff") "/lib")
"-DCMAKE_CXX_FLAGS=\"-DHAVE_NUMERIC_LIMITS128=1\""
"-Dlibgff_FOUND=TRUE"
"-DTBB_FOUND=TRUE"
#$(string-append "-DTBB_VERSION=" (package-version tbb-2020))
"-DTBB_LIBRARIES=tbb -ltbbmalloc"
#$(string-append "-DTBB_VERSION=" (package-version tbb))
"-DFETCHED_PUFFERFISH=TRUE"
"-DUSE_SHARED_LIBS=TRUE")
#:phases
(modify-phases %standard-phases
'(modify-phases %standard-phases
(add-after 'unpack 'prepare-pufferfish
(lambda* (#:key inputs #:allow-other-keys)
(copy-recursively (assoc-ref inputs "pufferfish")
@ -10355,6 +10355,7 @@ (define-public salmon
"MemChainer.hpp" "CommonTypes.hpp"
"SAMWriter.hpp" "PufferfishConfig.hpp"
"BulkChunk.hpp" "BinWriter.hpp"))
(for-each (lambda (dir)
(copy-recursively
(string-append "external/pufferfish/include/" dir)
@ -10362,6 +10363,7 @@ (define-public salmon
(list "libdivide"
"ksw2pp"
"compact_vector"
"itlib"
"metro"
"chobo"
"sparsepp"
@ -10396,13 +10398,19 @@ (define-public salmon
(("SALMON_QUASI_INDEX_COMMAND")
"SALMON_QUASI_INDEX_CMD")))))))
(inputs
`(("boost" ,boost)
("bzip2" ,bzip2)
("cereal" ,cereal-1.3.0)
("curl" ,curl)
("eigen" ,eigen)
("jemalloc" ,jemalloc)
("libgff" ,libgff)
(list boost
bzip2
cereal-1.3.0
curl
eigen
jemalloc
libgff
tbb
libstadenio-for-salmon
xz
zlib))
(native-inputs
`(("pkg-config" ,pkg-config)
("pufferfish" ,(origin
(method git-fetch)
(uri (git-reference
@ -10411,13 +10419,7 @@ (define-public salmon
(file-name (git-file-name "pufferfish" version))
(sha256
(base32
"0jakgpbanl6cs23x3g26iab54p7zylcf9v8vc32ps57smp8wql52"))))
("tbb" ,tbb-2020)
("libstadenio-for-salmon" ,libstadenio-for-salmon)
("xz" ,xz)
("zlib" ,zlib)))
(native-inputs
(list pkg-config))
"048a006mc2d0h78ym58mv67hl1pj480ilc5ifq0rlzfdyyfs1b8i"))))))
(home-page "https://github.com/COMBINE-lab/salmon")
(synopsis "Quantification from RNA-seq reads using lightweight alignments")
(description "Salmon is a program to produce highly-accurate,