nixos-test-driver: only depend on vsock things on linux

This commit is contained in:
Jacek Galowicz
2026-04-23 09:42:48 +01:00
parent b932dc513e
commit 6c0ab2edd5
+4 -1
View File
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonApplication,
colorama,
@@ -59,7 +60,6 @@ buildPythonApplication {
socat
util-linux
vde2
vhost-device-vsock
]
++ lib.optionals enableNspawn [
systemd
@@ -67,6 +67,9 @@ buildPythonApplication {
++ lib.optionals enableOCR [
imagemagick_light
tesseract4
]
++ lib.optionals stdenv.isLinux [
vhost-device-vsock
];
# containers test requires extra nix features that are not available in ofborg.