diff --git a/pkgs/by-name/xe/xen/package.nix b/pkgs/by-name/xe/xen/package.nix index 6e47fa7230d9..dbf92bb8e9ee 100644 --- a/pkgs/by-name/xe/xen/package.nix +++ b/pkgs/by-name/xe/xen/package.nix @@ -185,6 +185,30 @@ stdenv.mkDerivation (finalAttrs: { ./0001-makefile-efi-output-directory.patch (replaceVars ./0002-scripts-external-executable-calls.patch scriptDeps) + + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa509.patch"; + hash = "sha256-Ive95ewRsPe/Oq2NpqkcgXwKAi8pKJAF4eGQ9IkgM9A="; + }) + + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa510.patch"; + hash = "sha256-RxCN2TMqeXVjHZhqxLvhWE40vUkD52RDYNyd9+6K9mA="; + }) + + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa511-4.20.patch"; + hash = "sha256-rQTQ0UmDKo5Oi8THUHfb8W6/1OY2S3VEowmJf7Tb+1o="; + }) + + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa512-1.patch"; + hash = "sha256-Xky7ddRSd1d+Y/voEmsyiyMsU7NX/WM2/yOviaLv5gU="; + }) + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa512-2.patch"; + hash = "sha256-4LgqC1F22kFjiVWgiSb1hZazbBF2Fziiif0Scv+ynho="; + }) ] ++ optionals (versionOlder finalAttrs.version "4.21") [ # Patch `libxl` to search for `qemu-system-i386` properly.