git.iko.soy/typeable/nixpkgs
on master help sign in
qemu: fix darwin build

Co-authored-by: Michael Roitzsch <reactorcontrol@icloud.com>

commit44a41a2e11d8e08045ad2ab09830c00865848496 authorStéphan Kochen <git@stephank.nl> dateFri 21 May 2021, 08:52 (5 years ago) parentd10236e
1 file changed+8−1
pkgs/applications/virtualization/qemu/default.nix+8−1
pkgs/applications/virtualization/qemu/default.nix+8−1
@@ -103,10 +103,17 @@ stdenv.mkDerivation rec {
103103 })
104104 ];
105105
106− # Otherwise tries to ensure /var/run exists.
107106 postPatch = ''
107+ # Otherwise tries to ensure /var/run exists.
108108 sed -i "/install_subdir('run', install_dir: get_option('localstatedir'))/d" \
109109 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'
110117 '';
111118
112119 preConfigure = ''