Merge pull request #182133 from danielfullmer/fix-ipxe-cross

ipxe: fix cross-compilation

authored by

Artturi and committed by
GitHub
56ab5186 bafd0461

+5 -1
+5 -1
pkgs/tools/misc/ipxe/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, unstableGitUpdater 1 + { stdenv, lib, fetchFromGitHub, unstableGitUpdater, buildPackages 2 2 , gnu-efi, mtools, openssl, perl, xorriso, xz 3 3 , syslinux ? null 4 4 , embedScript ? null ··· 32 32 version = "unstable-2022-04-06"; 33 33 34 34 nativeBuildInputs = [ gnu-efi mtools openssl perl xorriso xz ] ++ lib.optional stdenv.hostPlatform.isx86 syslinux; 35 + depsBuildBuild = [ buildPackages.stdenv.cc ]; 36 + 37 + strictDeps = true; 35 38 36 39 src = fetchFromGitHub { 37 40 owner = "ipxe"; ··· 51 54 52 55 makeFlags = 53 56 [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here. 57 + "CROSS=${stdenv.cc.targetPrefix}" 54 58 ] ++ lib.optional (embedScript != null) "EMBED=${embedScript}"; 55 59 56 60