Subject: [PATCH v2 4/6] gnu: add slirp4netns

From: Timmy Douglas <[email-masked]>
Date: Sat, 18 Dec 2021 20:58:29 -0800

* gnu/packages/containers.scm: add slirp4netns
---
 gnu/packages/containers.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 777eaa2eb9..f13da74ac1 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -154,3 +154,29 @@ (define-public libslirp
      "libslirp is a user-mode networking library used by virtual machines,
 containers or various tools.")
     (license license:bsd-3)))
+
+(define-public slirp4netns
+  (package
+    (name "slirp4netns")
+    (version "1.1.12")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rootless-containers/slirp4netns")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081"))
+       (file-name (git-file-name name version))))
+
+    (build-system gnu-build-system)
+    (arguments '(#:tests? #f))
+    (inputs
+     (list glib libcap libseccomp libslirp))
+    (native-inputs
+     (list automake autoconf pkg-config))
+    (home-page "https://github.com/rootless-containers/slirp4netns")
+    (synopsis "User-mode networking for unprivileged network namespaces")
+    (description
+     "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.")
+    (license license:gpl2+)))
-- 
2.34.0