diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-11-18 11:05:21 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-11-18 11:09:27 +0100 |
commit | e101394194e976e990a73b1d9c1cb2381c983a5a (patch) | |
tree | 24b2d50f4469013fc3fd97f41e1a33c66cb2e330 /pkgs/tools/misc | |
parent | 30eddf1dfbb8cbdbfaf0b62dcc8ed4dd983511ad (diff) | |
parent | 7620992f2214379ec083a6934169af08c6dbd9bd (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.nix | 4 |
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; |