From c72142f4c46a3d9f6aa75fa29c8d4f06f40e407e Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Wed, 1 Apr 2026 00:31:56 +0200 Subject: [PATCH] gnu: Add java-junixsocket-common@2. * gnu/packages/java.scm (java-junixsocket-common-2): New variable. (junixsocket-source): New variable. Change-Id: I1054694feb2e8a39cf03b432feb0506ae9bc22bd --- gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 10ef65126c0..5f0ce62c33b 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -12441,6 +12441,49 @@ analysis.") @code{@@SuppressFBWarnings} and @code{@@ExcludeFromCodeCoverageGeneratedReport}.") (license license:asl2.0))) +(define junixsocket-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kohlschutter/junixsocket") + (commit "junixsocket-parent-2.5.1"))) + (file-name (git-file-name "java-junixsocket" "2.5.1")) + (sha256 + (base32 + "1zc84qbl2zsi9ch6b12crbiqlrkbrlw1z09kqlj04zrmck4k4pzn")))) + +(define-public java-junixsocket-common-2 + (package + (name "java-junixsocket-common") + (version "2.5.1") + (source junixsocket-source) + (build-system ant-build-system) + (arguments + `(#:jar-name "junixsocket-common.jar" + #:source-dir "junixsocket-common/src/main/java" + #:jdk ,openjdk9 + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'delete-module-info + (lambda _ + ;; module-info.java requires modules not available in + ;; our build (com.kohlschutter.annotations.compiletime, + ;; org.eclipse.jdt.annotation). The classes compile + ;; and work without JPMS metadata. + (delete-file + "junixsocket-common/src/main/java/module-info.java"))) + (replace 'install + (install-from-pom "junixsocket-common/pom.xml"))))) + (inputs (list java-eclipse-jdt-annotation-2 + java-kohlschutter-compiler-annotations-1)) + (home-page "https://github.com/kohlschutter/junixsocket") + (synopsis "Java library for Unix domain sockets") + (description "junixsocket is a Java library for Unix domain sockets +(AF_UNIX) and other address/protocol families, providing a Java Socket API +compatible interface.") + (license license:asl2.0))) + (define-public java-lmax-disruptor (package (name "java-lmax-disruptor")