From 2e70b7fa417249a5f3eaaa25e58e8e7deef6104f Mon Sep 17 00:00:00 2001 From: Pjotr Date: Wed, 1 Jul 2026 16:27:32 +0000 Subject: hmf: Add java-htsjdk 2.23.0. hmftools' hmf-common pins htsjdk 2.23.0; Guix mainline's java-htsjdk-latest sits at 2.14.3 with an explicit note that any newer release requires Gradle. Inherit java-htsjdk-latest and just bump version and source: its phase set already discards the deprecation- stub build.xml and removes the Scala test tree, leaving ant-build- system to compile src/main/java with the same set of runtime inputs (java-ngs, java-snappy-1, java-commons-compress, java-commons-logging-minimal, java-commons-jexl-2, java-xz) that worked for 2.14.3. htsjdk still targets Java 1.8 bytecode. * hmf/packages/java-libraries.scm (java-htsjdk-2.23): New variable. --- hmf/packages/java-libraries.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'hmf/packages/java-libraries.scm') diff --git a/hmf/packages/java-libraries.scm b/hmf/packages/java-libraries.scm index 08a9675..c0d73cf 100644 --- a/hmf/packages/java-libraries.scm +++ b/hmf/packages/java-libraries.scm @@ -19,7 +19,10 @@ #:use-module (guix utils) #:use-module (guix build-system ant) #:use-module (guix build-system trivial) - #:use-module (gnu packages java)) + #:use-module (gnu packages bioinformatics) + #:use-module (gnu packages compression) + #:use-module (gnu packages java) + #:use-module (gnu packages java-compression)) (define-public java-pcollections (package @@ -194,3 +197,26 @@ derived at compile time. hmf-common uses it as a compile-time-only (@code{provided}) annotation processor to generate ImmutableXxx implementations of its VCF / GRIPSS / PURPLE data model types.") (license license:asl2.0))) + +(define-public java-htsjdk-2.23 + ;; hmftools' hmf-common pins htsjdk 2.23.0. Guix mainline's + ;; java-htsjdk-latest sits at 2.14.3 with a note that any newer + ;; release requires Gradle to build; the ant-build-system recipe + ;; below inherits java-htsjdk-latest's phase set (which already + ;; discards the deprecation-stub build.xml and the Scala test tree) + ;; and just bumps to the 2.23.0 source tag. htsjdk still targets + ;; Java 1.8 bytecode, so building under icedtea-8 is safe; consumers + ;; run it under openjdk17 at runtime. + (package + (inherit java-htsjdk-latest) + (name "java-htsjdk") + (version "2.23.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/samtools/htsjdk") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1d57pyy6j8pb0y8k8fv0m5dxynxflwx8f151c25adhsav16ad8jl")))))) -- cgit 1.4.1