[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: gnu: Add gvisor-tap-vsock.
From: |
guix-commits |
Subject: |
06/09: gnu: Add gvisor-tap-vsock. |
Date: |
Fri, 22 Mar 2024 06:43:01 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 93af6aecd9e32d1592fb4297faebd7739653319d
Author: Tomas Volf <~@wolfsden.cz>
AuthorDate: Wed Mar 6 00:48:56 2024 +0100
gnu: Add gvisor-tap-vsock.
* gnu/packages/containers.scm (gvisor-tap-vsock): New variable.
Change-Id: I50c51613509e84998f17b4be593ce80c16002778
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/containers.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 6d4877460d..61c7e74c78 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -336,6 +336,50 @@ Layer-4 sockets.")
configure network interfaces in Linux containers.")
(license license:asl2.0)))
+(define-public gvisor-tap-vsock
+ (package
+ (name "gvisor-tap-vsock")
+ (version "0.7.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/containers/gvisor-tap-vsock")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1q1zism0c63k2aq6yhkjqc3b2zsm4lwn0bk39p2kl79h798wfyp4"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:make-flags `(list ,(string-append "GIT_VERSION=v" version))
+ #:test-target "test"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'setenv
+ (lambda _
+ ;; For golang toolchain.
+ (setenv "HOME" "/tmp")))
+ (add-before 'check 'prune-tests
+ (lambda _
+ ;; Requires internet connection to fetch QEMU image.
+ (invoke "rm" "-r" "test")))
+ (replace 'install
+ (lambda _
+ (install-file "bin/gvproxy" (string-append #$output "/bin")))))))
+ (native-inputs (list go-1.20))
+ (home-page "https://github.com/containers/gvisor-tap-vsock")
+ (synopsis "Network stack for virtualization based on gVisor")
+ (description "This package provides a replacement for @code{libslirp} and
+@code{VPNKit}, written in pure Go. It is based on the network stack of gVisor
+and brings a configurable DNS server and dynamic port forwarding.
+
+It can be used with QEMU, Hyperkit, Hyper-V and User-Mode Linux.
+
+The binary is called @command{gvproxy}.")
+ (license license:asl2.0)))
+
;; For podman to work, the user needs to run
;; `sudo mount -t cgroup2 none /sys/fs/cgroup`
- branch master updated (3d2966e0b7 -> 40f53e8fb5), guix-commits, 2024/03/22
- 02/09: doc: Mention channel files beyond ~/.config/guix., guix-commits, 2024/03/22
- 05/09: gnu: arcan-sdl: Add missing inputs., guix-commits, 2024/03/22
- 09/09: gnu: mu: Update to 1.12.2., guix-commits, 2024/03/22
- 03/09: system, home: Validate ‘services’ field value., guix-commits, 2024/03/22
- 01/09: services: guix: Add ‘channels’ field., guix-commits, 2024/03/22
- 04/09: gnu: mupdf: Update to 1.23.11., guix-commits, 2024/03/22
- 06/09: gnu: Add gvisor-tap-vsock.,
guix-commits <=
- 07/09: gnu: distrobox: Update to 1.7.0., guix-commits, 2024/03/22
- 08/09: gnu: distrobox: Fix dependency usage., guix-commits, 2024/03/22