Replace kernelHeaders' by linuxHeaders'.

svn path=/nixpkgs/branches/stdenv-updates/; revision=19067
This commit is contained in:
Ludovic Courtès
2009-12-21 14:04:45 +00:00
parent 310d6e4bbf
commit fac9a5c936
11 changed files with 51 additions and 45 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, kernelHeaders, gccCross ? null}:
{stdenv, fetchurl, linuxHeaders, gccCross ? null}:
assert stdenv.isLinux;
@@ -33,7 +33,7 @@ stdenv.mkDerivation {
configurePhase = ''
make defconfig ${archMakeFlag}
sed -e s@/usr/include@${kernelHeaders}/include@ \
sed -e s@/usr/include@${linuxHeaders}/include@ \
-e 's@^RUNTIME_PREFIX.*@RUNTIME_PREFIX="/"@' \
-e 's@^DEVEL_PREFIX.*@DEVEL_PREFIX="/"@' \
-e 's@.*UCLIBC_HAS_WCHAR.*@UCLIBC_HAS_WCHAR=y@' \
@@ -60,7 +60,7 @@ stdenv.mkDerivation {
installPhase = ''
mkdir -p $out
make PREFIX=$out VERBOSE=1 install ${crossMakeFlag}
(cd $out/include && ln -s ${kernelHeaders}/include/* .) || exit 1
(cd $out/include && ln -s ${linuxHeaders}/include/* .) || exit 1
sed -i s@/lib/@$out/lib/@g $out/lib/libc.so
'';