nixpkgs/pkgs/linux-headers/linux-headers-build.sh
Eelco Dolstra e83fe5ee78 * Patched gcc so that it doesn't search the standard include directories
(/usr/include, /usr/local/include, etc.).

* Immediate pay-off: we see that the glibc header files depend on the Linux
  kernel header files.  So I've added a package that extracts the appropriate
  headers from Linux 2.4.22.

svn path=/nixpkgs/trunk/; revision=361
2003-08-26 15:25:26 +00:00

12 lines
258 B
Bash
Executable file

#! /bin/sh
. $stdenv/setup || exit 1
mkdir $out || exit 1
cd $out || exit 1
tar xvfj $src 'linux-*/include/linux' 'linux-*/include/asm-i386' || exit 1
mv linux-*/include . || exit 1
rmdir linux-* || exit 1
cd include || exit 1
ln -s asm-i386 asm || exit 1