edk2 add short-circuit-the-transfer-of-an-empty-S3_CONTEXT.patch

as requested by @lukeadams in
https://github.com/NixOS/nixpkgs/pull/32724#issuecomment-352140119

+12 -2
+12 -2
pkgs/development/compilers/edk2/default.nix
··· 1 - { stdenv, fetchFromGitHub, libuuid, python2, iasl }: 2 3 let 4 pythonEnv = python2.withPackages(ps: [ps.tkinter]); ··· 20 sha256 = "0k48xfwxcgcim1bhkggc19hilvsxsf5axvvcpmld0ng1fcfg0cr6"; 21 }; 22 23 - buildInputs = [ libuuid pythonEnv]; 24 25 makeFlags = "-C BaseTools"; 26 ··· 32 mv -v EdkCompatibilityPkg $out 33 mv -v edksetup.sh $out 34 ''; 35 36 meta = { 37 description = "Intel EFI development kit";
··· 1 + { stdenv, fetchFromGitHub, fetchpatch, libuuid, python2, iasl }: 2 3 let 4 pythonEnv = python2.withPackages(ps: [ps.tkinter]); ··· 20 sha256 = "0k48xfwxcgcim1bhkggc19hilvsxsf5axvvcpmld0ng1fcfg0cr6"; 21 }; 22 23 + patches = [ 24 + (fetchpatch { 25 + name = "short-circuit-the-transfer-of-an-empty-S3_CONTEXT.patch"; 26 + url = "https://github.com/tianocore/edk2/commit/9e2a8e928995c3b1bb664b73fd59785055c6b5f6"; 27 + sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73"; 28 + }) 29 + ]; 30 + 31 + buildInputs = [ libuuid pythonEnv ]; 32 33 makeFlags = "-C BaseTools"; 34 ··· 40 mv -v EdkCompatibilityPkg $out 41 mv -v edksetup.sh $out 42 ''; 43 + 44 + enableParallelBuilding = true; 45 46 meta = { 47 description = "Intel EFI development kit";