linuxHeaders: use elf-header from build packages

Splicing does not work correctly here, so elf-header was being
pulled from the host packages. It must be pulled from the build
packages since it is used by the HOSTCC for build-time tools.

Note that using buildPackages here causes infinite recursion.

Fixes darwin -> linux-mips cross-compilation of linuxHeaders.
This commit is contained in:
Ryan Burns
2022-10-23 14:04:37 -07:00
parent 87c6a9a57c
commit 4b73e231f9
+1 -1
View File
@@ -24853,7 +24853,7 @@ with pkgs;
lkl = callPackage ../applications/virtualization/lkl { };
lklWithFirewall = callPackage ../applications/virtualization/lkl { firewallSupport = true; };
inherit (callPackages ../os-specific/linux/kernel-headers { })
inherit (callPackages ../os-specific/linux/kernel-headers { inherit (pkgsBuildBuild) elf-header; })
linuxHeaders makeLinuxHeaders;
klibc = callPackage ../os-specific/linux/klibc { };