Skip to content

Commit 6e6b17b

Browse files
committed
edk2-uefi-shell: fix cross compilation
This PYTHON_COMMAND workaround was introduced in NixOS#201095, but it does not seem to have caused issues so far, until the version update in bef3f40. Not sure why this was not an issue before this update and why it is now, but I think this fix makes sense regardless of the exact root cause, and I don't think it's worth the effort to dig further.
1 parent 1428179 commit 6e6b17b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/by-name/ed/edk2-uefi-shell/package.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
util-linux,
77
nasm,
88
python3,
9+
pkgsBuildHost,
910
}:
1011
edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: {
1112
pname = "edk2-uefi-shell";
@@ -32,7 +33,7 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: {
3233

3334
# Set explicitly to use Python 3 from nixpkgs. Otherwise, the build system will detect and try to
3435
# use `/usr/bin/python3` on Darwin when sandboxing is disabled.
35-
PYTHON_COMMAND = "${lib.getBin python3}/bin/python3";
36+
PYTHON_COMMAND = "${lib.getBin pkgsBuildHost.python3}/bin/python3";
3637

3738
# We only have a .efi file in $out which shouldn't be patched or stripped
3839
dontPatchELF = true;

0 commit comments

Comments
 (0)