From 7da6ce3ee23d5c0b39eeffa2e2827beabb0d3a8b Mon Sep 17 00:00:00 2001 From: Sughosha Date: Sun, 24 Aug 2025 08:30:23 +0530 Subject: [PATCH] gnu: Add jnetlib. * gnu/packages/cpp.scm (jnetlib): New variable. Change-Id: I93f4de3dbf13816027482617eafb8e3652dc7b33 --- gnu/packages/cpp.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 653ac7df93c..55655f926b2 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3858,6 +3858,39 @@ common controls and win32-style extensions.") "This package provides the default @code{libSwell.colortheme} file for programs that use @code{swell}."))) +(define-public jnetlib + (package + (inherit swell) + (name "jnetlib") + (arguments + (substitute-keyword-arguments (package-arguments swell) + ((#:tests? _ #t) #t) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'change-directory + (lambda _ (chdir "WDL/jnetlib"))) + (replace 'install + (lambda _ + (install-file "jnl.a" (string-append #$output "/lib")) + (for-each (lambda (file) + (install-file file (string-append #$output + "/include" + "/jnetlib"))) + (find-files "." "\\.h")))))))) + (native-inputs '()) + (inputs '()) + (synopsis "C++ asynchronous network abstraction layer") + (description + "JNetLib is a portable C++ asynchronous network abstraction layer. It +features: +@itemize +@item TCP connections support, +@item listening sockets support, +@item asynchronous DNS support, +@item HTTP serving and getting support, +@item Completely asynchronous love for single threaded apps. +@end itemize"))) + (define-public juce (package (name "juce")