Merge pull request #123872 from stephank/fix-qemu-darwin

qemu: fix darwin build

authored by Domen Kožar and committed by GitHub 33dbd881 049ecc97

+8 -1
+8 -1
pkgs/applications/virtualization/qemu/default.nix
··· 103 }) 104 ]; 105 106 - # Otherwise tries to ensure /var/run exists. 107 postPatch = '' 108 sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \ 109 qga/meson.build 110 ''; 111 112 preConfigure = ''
··· 103 }) 104 ]; 105 106 postPatch = '' 107 + # Otherwise tries to ensure /var/run exists. 108 sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \ 109 qga/meson.build 110 + 111 + # TODO: On aarch64-darwin, we automatically codesign everything, but qemu 112 + # needs specific entitlements and does its own signing. This codesign 113 + # command fails, but we have no fix at the moment, so this disables it. 114 + # This means `-accel hvf` is broken for now, on aarch64-darwin only. 115 + substituteInPlace meson.build \ 116 + --replace 'if exe_sign' 'if false' 117 ''; 118 119 preConfigure = ''