about summary refs log tree commit diff
path: root/pkgs/tools/misc/edk2-uefi-shell
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2022-11-13 18:12:20 -0500
committerRandy Eckenrode <randy@largeandhighquality.com>2022-11-13 18:12:28 -0500
commit7620992f2214379ec083a6934169af08c6dbd9bd (patch)
treefd626219428d5b03aec6744e21621972bf583545 /pkgs/tools/misc/edk2-uefi-shell
parent41ba1e1971997c5c0b6732bf7b273b2d33a4dde8 (diff)
edk2-uefi-shell: fix build when sandboxing is disabled on x86_64-darwin
Diffstat (limited to 'pkgs/tools/misc/edk2-uefi-shell')
-rw-r--r--pkgs/tools/misc/edk2-uefi-shell/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/misc/edk2-uefi-shell/default.nix b/pkgs/tools/misc/edk2-uefi-shell/default.nix
index e3d73775021f2..d399c7dabc159 100644
--- a/pkgs/tools/misc/edk2-uefi-shell/default.nix
+++ b/pkgs/tools/misc/edk2-uefi-shell/default.nix
@@ -16,6 +16,10 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: {
 
   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
   dontPatchELF = true;
   dontStrip = true;