Merge pull request #148286 from NixOS/backport-148251-to-release-21.11

[Backport release-21.11] qemu: fix darwin build
This commit is contained in:
Domen Kožar
2021-12-05 12:47:17 +00:00
committed by GitHub

View File

@@ -228,8 +228,7 @@ stdenv.mkDerivation rec {
# Add a ‘qemu-kvm’ wrapper for compatibility/convenience.
postInstall = ''
cp -- $emitKvmWarningsPath $out/libexec/emit-kvm-warnings
chmod a+x -- $out/libexec/emit-kvm-warnings
install -m755 -D $emitKvmWarningsPath $out/libexec/emit-kvm-warnings
if [ -x $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} ]; then
makeWrapper $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} \
$out/bin/qemu-kvm \