guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 37f6d1af187c1690e796b320c7227a8397f31bb6
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Jul 26 14:57:42 2025 +0200

    gnu: Add socket-wrapper.
    
    * gnu/packages/samba.scm (socket-wrapper): New variable.
    
    Change-Id: Ife9388b5af7365e892a58f3795c7deb52232fb9e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/samba.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index bdc8f066ee..a7c547e070 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2022 Simon Streit <[email protected]>
 ;;; Copyright © 2024 Jordan Moore <[email protected]>
 ;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
+;;; Copyright © 2025 Nicolas Graves <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -38,6 +39,7 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix utils)
@@ -523,6 +525,39 @@ and IPV6 and the protocols layered above them, such as TCP 
and UDP.")
                    license:gpl2+
                    license:public-domain))))
 
+(define-public socket-wrapper
+  (package
+    (name "socket-wrapper")
+    (version "1.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://git.samba.org/socket_wrapper.git/";)
+              (commit (string-append "socket_wrapper-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0554pmcjrzq0fz35mhmlybc681m4igxyjc7gcwk353a3q49wk4ki"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags #~(list "-DUNIT_TESTING=ON")))
+    (native-inputs (list cmocka))
+    (home-page "https://cwrap.org/socket_wrapper.html";)
+    (synopsis "Library passing socket communications through unix sockets")
+    (description
+     "This package aims to help client/server software development teams
+willing to gain full functional test coverage.  It makes possible to run
+several instances of the full software stack on the same machine and perform
+locally functional testing of complex network configurations.  It provides the
+following features:
+@itemize
+@item Redirects all network communication to happen over unix sockets.
+@item Support for IPv4 and IPv6 socket and addressing emulation.
+@item Ability to capture network traffic in pcap format.
+@end itemize")
+    (license license:bsd-3)))
+
 (define-public wsdd
   (package
     (name "wsdd")

Reply via email to