Skip to content

Commit

Permalink
qemu-screamer: don't add qemu-kvm unless it exists (to avoid noBroken…
Browse files Browse the repository at this point in the history
…Symlinks error)
  • Loading branch information
Rhys-T committed Feb 8, 2025
1 parent 41f8996 commit 3bbbb3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/qemu-screamer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,11 @@ stdenv.mkDerivation rec {
'';

# Add a ‘qemu-kvm’ wrapper for compatibility/convenience.
# SCREAMER: don't add qemu-kvm unless it exists (to avoid noBrokenSymlinks error).
postInstall = ''
ln -s $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} $out/bin/qemu-kvm
if [[ -e $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} ]]; then
ln -s $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} $out/bin/qemu-kvm
fi
'' + lib.optionalString stdenv.isLinux ''
ln -s $out/libexec/virtiofsd $out/bin
'';
Expand Down

0 comments on commit 3bbbb3a

Please sign in to comment.