summaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-04-01 00:31:56 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-05-03 02:30:22 +0200
commitc72142f4c46a3d9f6aa75fa29c8d4f06f40e407e (patch)
tree5368c1c9a990e040c446b4631d9a4bba5b4fd8c9 /gnu/packages/java.scm
parentbebdf78496a6782cce56a4fe23a6c79b9b96ef3e (diff)
gnu: Add java-junixsocket-common@2.
* gnu/packages/java.scm (java-junixsocket-common-2): New variable. (junixsocket-source): New variable. Change-Id: I1054694feb2e8a39cf03b432feb0506ae9bc22bd
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 10ef65126c..5f0ce62c33 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")