@@ -29,6 +29,12 @@ let
2929
3030 xsa = import ./xsa-patches.nix { inherit fetchpatch; };
3131
32+ qemuMemfdBuildFix = fetchpatch {
33+ name = "xen-4.8-memfd-build-fix.patch";
34+ url = https://github.com/qemu/qemu/commit/75e5b70e6b5dcc4f2219992d7cffa462aa406af0.patch;
35+ sha256 = "0gaz93kb33qc0jx6iphvny0yrd17i8zhcl3a9ky5ylc2idz0wiwa";
36+ };
37+
3238 qemuDeps = [
3339 udev pciutils xorg.libX11 SDL pixman acl glusterfs spice-protocol usbredir
3440 alsaLib glib python2
@@ -53,6 +59,9 @@ callPackage (import ./generic.nix (rec {
5359 rev = "b79708a8ed1b3d18bee67baeaf33b3fa529493e2";
5460 sha256 = "1yxxad6nvlfmrbgyc8ix19qmrsn1rx4zpyiqnfi4x4kg94acwa5w";
5561 };
62+ patches = [
63+ qemuMemfdBuildFix
64+ ];
5665 buildInputs = qemuDeps;
5766 postPatch = ''
5867 # needed in build but /usr/bin/env is not available in sandbox