From 145cf67bbbe7afc10b9db8e6454828b64a975da5 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Sat, 16 Jan 2021 13:44:42 -0800 Subject: [PATCH] libvirt: correct localstatedir (#109415) It was supposed to be '/var' rather than '/var/lib'. This fixes an issue where some tools don't connect to the right socket (because they were connecting to '$localstatedir/run/libvirt...' instead of '$runstatedir/libvirt...'). Also change runstatedir to just be '/run' since it avoids a log line complaining about that. --- pkgs/development/libraries/libvirt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index 690f2f3cfe7c..f8a8bec15d52 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -88,8 +88,8 @@ in stdenv.mkDerivation rec { in [ "--sysconfdir=/var/lib" "-Dinstall_prefix=${placeholder "out"}" - "-Dlocalstatedir=/var/lib" - "-Drunstatedir=/var/run" + "-Dlocalstatedir=/var" + "-Drunstatedir=/run" "-Dlibpcap=enabled" "-Ddriver_qemu=enabled" "-Ddriver_vmware=enabled"