nixpkgs/pkgs/os-specific/linux/kernel-headers/builder.sh
Eelco Dolstra 26a11fbf54 * Fix a typo, and put the platform-specific header directory in the
Nix expression rather than the builder.

svn path=/nixpkgs/trunk/; revision=6843
2006-10-25 10:14:27 +00:00

24 lines
390 B
Bash

source $stdenv/setup
buildPhase() {
make include/linux/version.h
}
buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/include
cp -prvd include/linux include/asm-generic $out/include
cp -prvd include/asm-$platform $out/include
ln -s asm-$platform $out/include/asm
echo -n > $out/include/linux/autoconf.h
}
installPhase=installPhase
genericBuild