From fd5647076864e8d9b07df289a7f2b4e1674e147b Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Sat, 12 Nov 2022 09:02:27 -0800 Subject: [PATCH] qemu: fix dangling virtiofsd symlink warning This issue goes away with the change: ``` warning: creating dangling symlink `/nix/store/...//bin/virtiofsd' -> `/nix/store/...-qemu-host-cpu-only-7.1.0/bin/virtiofsd' -> `../libexec/virtiofsd' ``` --- pkgs/applications/virtualization/qemu/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index c20a2c53d600..a7a71977c4ae 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -231,8 +231,9 @@ stdenv.mkDerivation rec { # Add a ‘qemu-kvm’ wrapper for compatibility/convenience. postInstall = '' - ln -s $out/libexec/virtiofsd $out/bin ln -s $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} $out/bin/qemu-kvm + '' + lib.optionalString stdenv.isLinux '' + ln -s $out/libexec/virtiofsd $out/bin ''; passthru = {