edk2-uefi-shell: fix build when sandboxing is disabled on x86_64-darwin
This commit is contained in:
parent
41ba1e1971
commit
7620992f22
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: {
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-fno-pic" "-Qunused-arguments" ];
|
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-fno-pic" "-Qunused-arguments" ];
|
||||||
|
|
||||||
|
# Set explicitly to use Python 3 from nixpkgs. Otherwise, the build system will detect and try to
|
||||||
|
# use `/usr/bin/python3` on Darwin when sandboxing is disabled.
|
||||||
|
PYTHON_COMMAND = "${lib.getBin python3}/bin/python3";
|
||||||
|
|
||||||
# We only have a .efi file in $out which shouldn't be patched or stripped
|
# We only have a .efi file in $out which shouldn't be patched or stripped
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in a new issue