diff --git a/pkgs/by-name/ed/edk2-uefi-shell/package.nix b/pkgs/by-name/ed/edk2-uefi-shell/package.nix index dd79e1ac4d16..b1d1beb266ef 100644 --- a/pkgs/by-name/ed/edk2-uefi-shell/package.nix +++ b/pkgs/by-name/ed/edk2-uefi-shell/package.nix @@ -6,6 +6,7 @@ util-linux, nasm, python3, + pkgsBuildHost, }: edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: { pname = "edk2-uefi-shell"; @@ -32,7 +33,7 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: { # 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"; + PYTHON_COMMAND = "${lib.getBin pkgsBuildHost.python3}/bin/python3"; # We only have a .efi file in $out which shouldn't be patched or stripped dontPatchELF = true;