diff --git a/pkgs/os-specific/linux/klibc/builder.sh b/pkgs/os-specific/linux/klibc/builder.sh index d4a9f560e21f..a6e7abf82015 100644 --- a/pkgs/os-specific/linux/klibc/builder.sh +++ b/pkgs/os-specific/linux/klibc/builder.sh @@ -3,7 +3,7 @@ source $stdenv/setup preBuild=preBuild preBuild() { mkdir -p linux/include - ln -s $kernelHeaders/include/* linux/include/ + ln -s $kernel/lib/modules/*/build/include/* linux/include/ } makeFlagsArray=(V=1 prefix=$out SHLIBDIR=$out/lib) diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 64ee86a9435a..d016759e7747 100644 --- a/pkgs/os-specific/linux/klibc/default.nix +++ b/pkgs/os-specific/linux/klibc/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, perl, bison, mktemp}: +{stdenv, fetchurl, perl, bison, mktemp, kernel}: assert stdenv.isLinux; @@ -9,7 +9,7 @@ stdenv.mkDerivation { url = http://www.kernel.org/pub/linux/libs/klibc/klibc-1.4.tar.bz2; md5 = "f4e0e17fc660e59c39e448fe1d827d36"; }; - inherit (stdenv.glibc) kernelHeaders; + inherit kernel; buildInputs = [perl bison mktemp]; patches = [./install.patch]; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d644512c2c24..8bf29d427ee5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2142,7 +2142,7 @@ rec { }; klibc = import ../os-specific/linux/klibc { - inherit fetchurl stdenv perl bison mktemp; + inherit fetchurl stdenv perl bison mktemp kernel; }; mingetty = import ../os-specific/linux/mingetty {