summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-11-18 11:05:21 +0100
committerVladimír Čunát <v@cunat.cz>2022-11-18 11:09:27 +0100
commite101394194e976e990a73b1d9c1cb2381c983a5a (patch)
tree24b2d50f4469013fc3fd97f41e1a33c66cb2e330 /pkgs/tools/misc
parent30eddf1dfbb8cbdbfaf0b62dcc8ed4dd983511ad (diff)
parent7620992f2214379ec083a6934169af08c6dbd9bd (diff)
Merge #201095: edk2-uefi-shell: fix without sandboxing
... when built on x86_64-darwin.  Maybe / in some cases, at least.
Diffstat (limited to 'pkgs/tools/misc')
-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;