From 89408dc0964ca6909e43f9b50372808035715d19 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 18 Mar 2025 15:50:22 +0100 Subject: gnu: htslib: Update to 1.21. * gnu/packages/bioinformatics.scm (htslib): Update to 1.21. (htslib-1.19): New variable. Change-Id: If2a53871e69c606d3aebe820ee75bcc945d939b0 --- gnu/packages/bioinformatics.scm | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 4c3fbe66e9..6de9ff05fa 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -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) -- cgit v1.3