qemu: fix darwin build

Co-authored-by: Michael Roitzsch <reactorcontrol@icloud.com>
wip/little-gl
Stéphan Kochen 3 years ago
parent d10236eb20
commit 44a41a2e11
  1. 9
      pkgs/applications/virtualization/qemu/default.nix

@ -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 = ''

Loading…
Cancel
Save