qemu: fix darwin build

Co-authored-by: Michael Roitzsch <reactorcontrol@icloud.com>
This commit is contained in:
Stéphan Kochen 2021-05-21 08:52:56 +02:00
parent d10236eb20
commit 44a41a2e11

View file

@ -103,10 +103,17 @@ stdenv.mkDerivation rec {
})
];
# Otherwise tries to ensure /var/run exists.
postPatch = ''
# Otherwise tries to ensure /var/run exists.
sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \
qga/meson.build
# TODO: On aarch64-darwin, we automatically codesign everything, but qemu
# needs specific entitlements and does its own signing. This codesign
# command fails, but we have no fix at the moment, so this disables it.
# This means `-accel hvf` is broken for now, on aarch64-darwin only.
substituteInPlace meson.build \
--replace 'if exe_sign' 'if false'
'';
preConfigure = ''