summaryrefslogtreecommitdiff
path: root/gnu/packages/containers.scm
diff options
context:
space:
mode:
authorTimmy Douglas <mail@timmydouglas.com>2021-12-21 23:33:50 -0800
committerLudovic Courtès <ludo@gnu.org>2022-01-01 19:06:57 +0100
commitf4ee4523ebad70f80069d833c2b838543af89e18 (patch)
tree29968c08f755201fd8a79a1e7481ee15037b9b02 /gnu/packages/containers.scm
parent2981d8d744f131d2ebc6bb344aca0aa704430cd7 (diff)
gnu: Add libslirp.
* gnu/packages/containers.scm (libslirp): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/containers.scm')
-rw-r--r--gnu/packages/containers.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 3fe8af5cbc..84f4039277 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -146,3 +146,28 @@ Container Runtime fully written in C.")
manager (like Podman or CRI-O) and an Open Container Initiative (OCI)
runtime (like runc or crun) for a single container.")
(license license:asl2.0)))
+
+(define-public libslirp
+ (package
+ (name "libslirp")
+ (version "4.6.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.freedesktop.org/slirp/libslirp")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "1b4cn51xvzbrxd63g6w1033prvbxfxsnsn1l0fa5i311xv28vkh0"))
+ (file-name (git-file-name name version))))
+ (build-system meson-build-system)
+ (inputs
+ (list glib))
+ (native-inputs
+ (list pkg-config))
+ (home-page "https://gitlab.freedesktop.org/slirp/libslirp")
+ (synopsis "User-mode networking library")
+ (description
+ "libslirp is a user-mode networking library used by virtual machines,
+containers or various tools.")
+ (license license:bsd-3)))