gnu: htslib: Update to 1.21.

* gnu/packages/bioinformatics.scm (htslib): Update to 1.21.
(htslib-1.19): New variable.

Change-Id: If2a53871e69c606d3aebe820ee75bcc945d939b0
This commit is contained in:
Ricardo Wurmus 2025-03-18 15:50:22 +01:00 committed by Andreas Enge
parent 6309ac44c6
commit 89408dc096
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -9228,6 +9228,48 @@ name/ID compression and quality score compression derived from fqzcomp.")
(define-public htslib
(package
(name "htslib")
(version "1.21")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/samtools/htslib/releases/download/"
version "/htslib-" version ".tar.bz2"))
(sha256
(base32
"08qq1yn6lqqnww532s11nr6gz0gfpn58rn3gy90kd5pl6pki1dc4"))
(snippet
#~(begin
(use-modules (guix build utils))
(delete-file-recursively "htscodecs")))))
(build-system gnu-build-system)
;; Let htslib translate "gs://" and "s3://" to regular https links with
;; "--enable-gcs" and "--enable-s3". For these options to work, we also
;; need to set "--enable-libcurl".
(arguments
`(#:configure-flags '("--enable-gcs"
"--enable-libcurl"
"--enable-s3"
"--with-external-htscodecs")))
(inputs
(list bzip2 curl openssl xz))
;; This is referred to in the pkg-config file as a required library.
(propagated-inputs
(list htscodecs zlib))
(native-inputs
(list perl))
(home-page "https://www.htslib.org")
(synopsis "C library for reading/writing high-throughput sequencing data")
(description
"HTSlib is a C library for reading/writing high-throughput sequencing
data. It also provides the @command{bgzip}, @command{htsfile}, and
@command{tabix} utilities.")
;; Files under cram/ are released under the modified BSD license;
;; the rest is released under the Expat license
(license (list license:expat license:bsd-3))))
(define-public htslib-1.19
(package
(inherit htslib)
(version "1.19")
(source (origin
(method url-fetch)