efibootmgr: Fix the cross compilation

This commit is contained in:
Michael Weiss 2020-06-19 19:44:11 +02:00
parent 1ce06d2448
commit 5afd967d70
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
# We have no LTO here since commit 22284b07.
postPatch = if stdenv.isi686 then "sed '/^CFLAGS/s/-flto//' -i Make.defaults" else null;
makeFlags = [ "EFIDIR=nixos" ];
makeFlags = [ "EFIDIR=nixos" "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config" ];
installFlags = [ "prefix=$(out)" ];