git.iko.soy/typeable/nixpkgs
on master help sign in
glibc: Grab the right linux headers when build != host

In #28519 / 791ce593ce065cf074edf1509ff52ebc69136d9e I made linux headers be intended to be used from the stage stage, as it would be if it were a library containing headers and code. I forgot to update glibc, however, so it was incorrectly using headers for the build platform, not host platform. This fixes that, basically reverting a small portion of changes I made a few months ago in 25edc476fd9fe1bd8bedf571d218ba4f27fb5a27 and its parent. No native hashes are changed.

commit8bfb2472241a991934ff95bd7b57f0bd1c2194d2 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 20 Sep 2017, 20:27 (9 years ago) parent19e3c58
1 file changed+4−3
pkgs/development/libraries/glibc/common.nix+4−3
pkgs/development/libraries/glibc/common.nix+4−3
@@ -1,10 +1,12 @@
11/* Build configuration used to build glibc, Info files, and locale
22 information. */
33
4−{ stdenv, lib, fetchurl
5−, gd ? null, libpng ? null
4+{ stdenv, lib
65, buildPlatform, hostPlatform
76, buildPackages
7+, fetchurl
8+, linuxHeaders ? null
9+, gd ? null, libpng ? null
810}:
911
1012{ name
@@ -17,7 +19,6 @@
1719} @ args:
1820
1921let
20− inherit (buildPackages) linuxHeaders;
2122 version = "2.25";
2223 patchSuffix = "-49";
2324 sha256 = "067bd9bb3390e79aa45911537d13c3721f1d9d3769931a30c2681bfee66f23a0";